[FFmpeg-devel] [PATCH] imgutils: generalize linesize computation for bitstream formats

Michael Niedermayer michaelni at gmx.at
Sat May 14 21:34:07 CEST 2011

On Fri, May 13, 2011 at 05:24:46PM +0200, Stefano Sabatini wrote:
> Make it a subcase of the general algorithm used for the non-bitstream
> case. Simplify, and make av_image_get_linesize() and
> av_image_fill_linesizes() correctly return the right value when plane
> != 0.
> All the supported bitstream formats have only one plane (containing
> all the components), so the linesize of all the other planes should be
> set to 0.
> In particular fix a crash occurring with:
> -vf format=monow,showinfo,format=showinfo.

if this fixes a bug it should be ok

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110514/f3fdbbcd/attachment.asc>

More information about the ffmpeg-devel mailing list