Changeset 03a9c993 in ffmpeg


Ignore:
Timestamp:
Dec 19, 2011, 3:27:52 PM (13 years ago)
Author:
Michael Niedermayer <michaelni@gmx.at>
Branches:
master
Children:
1d0ae92a
Parents:
32a92d32
Message:

eamad: fix excessive memory allocation.
Fixes Ticket792
Bug found by Oana Stratulat

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libavcodec/eamad.c

    r32a92d32 r03a9c993  
    269269
    270270    if (avctx->width != s->width || avctx->height != s->height) {
     271        if((s->width * s->height)/2048*7 > buf_end-buf)
     272            return -1;
    271273        if (av_image_check_size(s->width, s->height, 0, avctx) < 0)
    272274            return -1;
Note: See TracChangeset for help on using the changeset viewer.