Hi,
I am developing an application using avcodec, avformat, and swscale as
shared libraries (.so files). The application compiles and runs, but
during compilation I get the following warning:
../libav/avcodec.h:2309: warning: ‘ImgReSampleContext’ is
deprecated (declared at ../libav/avcodec.h:2303)
../libav/avcodec.h:2319: warning: ‘ImgReSampleContext’ is
deprecated (declared at ../libav/avcodec.h:2303)
I did not get this warning when I used the system header files and
linked to system .so files. Furthermore, when I play back a WMV2 stream
I get the following output (or similar) every second or so:
[wmv2 @ 0xb7de2e90]ignoring overflow at 32 1
[wmv2 @ 0xb7de2e90]ignoring overflow at 31 2
[wmv2 @ 0xb7de2e90]dc overflow- block: 0 qscale: 11//
[wmv2 @ 0xb7de2e90]
error while decoding intra block: 21 x 6 (0)
[wmv2 @ 0xb7de2e90]Error at MB: 327
[wmv2 @ 0xb7de2e90]concealing 1628 DC, 1628 AC, 1628 MV errors
I did not get that while using the system files, so I suspect that it is
related to my compilation warning. I have the following extradata
settings for my WMV2 decoding. I don't remember where I got it from, but
it has been working with the system files so I've kept using it (without
knowing what it does).
// Specifically for WMV2..?
if (pCodecCtx->codec_id == CODEC_ID_WMV2)
{
pCodecCtx->extradata = (uint8_t*)av_malloc(4);
pCodecCtx->extradata[0] = 0xf0;
pCodecCtx->extradata[1] = 0xfa;
pCodecCtx->extradata[2] = 0xf4;
pCodecCtx->extradata[3] = 0x80;
pCodecCtx->extradata_size = 4;
}
So, am I right to suspect that the compilation warning is all due to me
using some outdated version of avcodec.h, or something? I didn't think I
was. Or could the extradata WMV2 parameters be wrong? I appreciate any
input.
Sincerely,
Ola
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user