diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-21 16:15:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-21 17:57:15 +0200 |
commit | 800ffa1fc0896bd0b470725545b191fea802b42d (patch) | |
tree | 3ba5e38972b4716d8aa58e5f7e615653a7ec5b5f /libavcodec/h264_sei.c | |
parent | 37ecd67b5e149e55d71b1d8950abc5476d56999a (diff) | |
download | ffmpeg-800ffa1fc0896bd0b470725545b191fea802b42d.tar.gz |
avcodec/h264_sei/ff_h264_decode_sei: fix error codes for insufficient data
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_sei.c')
-rw-r--r-- | libavcodec/h264_sei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c index 932085230b..2ac9588945 100644 --- a/libavcodec/h264_sei.c +++ b/libavcodec/h264_sei.c @@ -249,14 +249,14 @@ int ff_h264_decode_sei(H264Context *h){ type=0; do{ if (get_bits_left(&h->gb) < 8) - return -1; + return AVERROR_INVALIDDATA; type+= show_bits(&h->gb, 8); }while(get_bits(&h->gb, 8) == 255); size=0; do{ if (get_bits_left(&h->gb) < 8) - return -1; + return AVERROR_INVALIDDATA; size+= show_bits(&h->gb, 8); }while(get_bits(&h->gb, 8) == 255); |