[FFmpeg-devel] [libav-devel] [PATCH] h264: update avctx width/height when flushing

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sun Jun 14 20:00:58 CEST 2015

On 14.06.2015 18:48, Luca Barbato wrote:
> On 14/06/15 17:31, Andreas Cadhalpun wrote:
>> On 14.06.2015 16:46, Luca Barbato wrote:
>>> Sadly some codecs such as vdpau (thanks to wm4 for spotting) would
>>> possibly break if those parameters aren't set to the current decoding
>>> decoding set, so setting avctx->{those} to the last outputted frame
>>> could probably cause more problems.
>> That'd be unfortunate. What issues could it cause for vdpau?
> They coded dimension seem to be used for allocation so I guess would be
> quite problematic.

So if I understood that correctly the API user has to allocate a buffer
for the vdpau decoder based on coded_with/coded_height. So the values have
to be for the next frame and can't be for the last, if there is any
difference between these two.
That unfortunately makes completely fixing the problem in libavcodec
rather impossible...

Best regards,

More information about the ffmpeg-devel mailing list