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

Stefano Sabatini stefano.sabatini-lala at poste.it
Sat May 14 15:06:56 CEST 2011

On date Friday 2011-05-13 17:24:46 +0200, Stefano Sabatini encoded:
> 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.

I'll apply this in a few days, please review&comment if you have
FFmpeg = Fancy and Funny Most Philosophical Eretic God

More information about the ffmpeg-devel mailing list