[FFmpeg-devel] [PATCH] lavc/jpeglsenc: fix allocation in case of negative linesize, and add malloc check
Paul B Mahol
onemda at gmail.com
Sun Mar 18 19:49:32 CET 2012
On 3/18/12, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Sun, Mar 18, 2012 at 04:57:13PM +0100, Stefano Sabatini wrote:
>> Fix crash with negative linesizes, fix trac ticket #1078.
>> ---
>> libavcodec/jpeglsenc.c | 4 +++-
>> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> patch is ok
>
> also, if negative linesizes are supported then CODEC_CAP_NEG_LINESIZES
That cap is ignored by ffmpeg, and it is used only by ffplay.
So current behaviour is wrong.
> could be added.
>
> also independant of the patch the docs about CODEC_CAP_NEG_LINESIZES
> (if it affects encoder input / get_buffer() output should be
> improved and codecs should be checked to match the docs)
>
>
> [...]
> --
> Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> If you think the mosad wants you dead since a long time then you are either
> wrong or dead since a long time.
>
More information about the ffmpeg-devel
mailing list