[FFmpeg-devel] video corruption using h264 hw decoders

Joakim Plate elupus at ecce.se
Sat Nov 26 12:30:37 CET 2011


On Wed, 23 Nov 2011 14:26:59 +0100, Michael Niedermayer wrote:

> On Sun, Nov 06, 2011 at 01:24:59AM +0100, Joakim Plate wrote:
>> [24 quoted lines suppressed]
> 
> this patch causes an interresting issue.
> when the decoder is closed and opened again the
> avcodec_set_dimensions() calls in avcodec_open2() change the width
> which ends up causing ffprobe and ffmpeg to print differing widths
> for  http://panda-test-harness-videos.s3.amazonaws.com/panda.mp4
> 
> 
> [... ]

Didn't test the sample, but I'd assume it would happen if you reopen the
codec without decoding anything. As soon as you decode, it should correct
itself i think.

Not sure how one would avoid that. But not calling set_dimensions on open
without decoding is probably the only way.

/Joakim



More information about the ffmpeg-devel mailing list