diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-06 00:01:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-06 00:01:47 +0200 |
commit | ccdaa31d8647903f2cf018a09fa4c925f41e7bfc (patch) | |
tree | 1fce7fa0a6ddad558f4fa1b2f01a173fc62cec96 /libavcodec/h264_ps.c | |
parent | dc35b77b28f40c99d27c073fe2c22219ba600202 (diff) | |
download | ffmpeg-ccdaa31d8647903f2cf018a09fa4c925f41e7bfc.tar.gz |
ff_h264_decode_picture_parameter_set: fix return code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_ps.c')
-rw-r--r-- | libavcodec/h264_ps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c index 3cecd30c7e..0cf86c2b1d 100644 --- a/libavcodec/h264_ps.c +++ b/libavcodec/h264_ps.c @@ -586,7 +586,7 @@ int ff_h264_decode_picture_parameter_set(H264Context *h, int bit_length){ if(pps_id >= MAX_PPS_COUNT) { av_log(h->avctx, AV_LOG_ERROR, "pps_id (%d) out of range\n", pps_id); - return -1; + return AVERROR_INVALIDDATA; } pps= av_mallocz(sizeof(PPS)); |