Browse Source

pafdec: fix wrong check for input buffer size.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
f952ae1400
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/paf.c

+ 1
- 1
libavcodec/paf.c View File

@@ -278,7 +278,7 @@ static int paf_vid_decode(AVCodecContext *avctx, void *data,

if (index + count > 256)
return AVERROR_INVALIDDATA;
if (bytestream2_get_bytes_left(&c->gb) < 3 * AVPALETTE_SIZE)
if (bytestream2_get_bytes_left(&c->gb) < 3*count)
return AVERROR_INVALIDDATA;

out += index;


Loading…
Cancel
Save