Hi Ola,
Ola Mogstad wrote:
> 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)
You are probably using an outdated version of ffmpeg (I do not see these
warnings when compiling my programs with a recent ffmpeg, and the line
numbers you quote do not seem to match the current avcodec.h file).
> I did not get this warning when I used the system header files
This is not surprising: system headers have nothing to do with libavcodec...
> 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
This surely cannot be related with the ImgReSampleContext warning:
you have to
1) Update to current svn
2) Reproduce the problem with the ffmpeg executable
3) Submit a proper bug report.
> 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).
[...]
Setting random values in extradata is never a good idea ;-)
> 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 think so
> I didn't think I was. Or could the extradata WMV2 parameters be wrong?
I do not know anything about WMV2, but the errors you are seeing are
surely not due to the compilation warnings you posted.
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user