[FFmpeg-devel] video corruption using h264 hw decoders
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Fri Oct 28 18:48:12 CEST 2011
On Fri, Oct 28, 2011 at 06:25:23PM +0200, Rainer Hochecker wrote:
> Find a sample here:
> http://www.datafilehost.com/download-face487e.html
>
> Also see this long thread in our forum:
> http://forum.xbmc.org/showthread.php?t=99448&page=15
> It is proven that corruption disappears when reverting the mentioned commit.
>
> I think we need the original size of the frame for allocating video
> surfaces. avctx->coded_height
> gives us the height after having subtracted cropping parameters. IOW the
> allocated video
> surfaces are too small.
avcodec_align_dimensions2 tells you the correct dimensions (well, mostly
for decoding with FFmpeg, but works just as well for that).
And as you see from the changed patch, that means that the height has to
basically be rounded up to a multiple of 32.
More information about the ffmpeg-devel
mailing list