0
当我打电话avformat_find_stream_info()为WMV文件,下面的消息总是看出:
[WMV3 00FAEAE0]额外数据: 8位离开,值:0对于WMV文件avformat_find_stream_info()表示 “额外数据:8位左,值:0” 消息
之后,该计划按预期工作,但无论如何,我想知道是什么意思的消息?谢谢!
文件信息(通过的ffmpeg -i):
Duration: 00:00:06.92, start: 0.000000, bitrate: 1514 kb/s
Stream #0:0(rus): Audio: wmav2 (a[1][0][0]/0x0161), 44100 Hz, stereo, fltp, 128 kb/s
Stream #0:1(rus): Video: wmv3 (Main) (WMV3/0x33564D57), yuv420p, 720x576, 1368 kb/s, SAR 16:15 DAR 4:3, 25 tbr, 1k tbn, 1k tbc
代码:
AVFormatContext* pFormatCtx = avformat_alloc_context();
if (avformat_open_input(&pFormatCtx, "file.wmv", NULL, NULL) < 0)
return 0;
if (avformat_find_stream_info(pFormatCtx, NULL) < 0) // HERE WE HAVE GOT THAT MESSAGE
return 0;