Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-06 02:01:47 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-05-06 02:01:47 +0400
commitccdaa31d8647903f2cf018a09fa4c925f41e7bfc (patch)
tree1fce7fa0a6ddad558f4fa1b2f01a173fc62cec96 /libavcodec/h264_ps.c
parentdc35b77b28f40c99d27c073fe2c22219ba600202 (diff)
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.c2
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));