imgutils: generalize linesize computation for bitstream formats
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Fri, 13 May 2011 13:42:31 +0000 (15:42 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 15 May 2011 10:27:07 +0000 (12:27 +0200)
commit10931720cd55d83e0b933b8a9bb0795fd9e48875
tree9a4287662b23bc6f1b8baf850b9ee92f7dfec02a
parent5a153604c930792aa7f00c55cbf3c470f582dfb7
imgutils: generalize linesize computation for bitstream formats

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.

In particular fix a crash occurring with:
-vf format=monow,showinfo,format=monow.
libavutil/imgutils.c