[FFmpeg-cvslog] ff_h264_decode_picture_parameter_set: fix return code
Michael Niedermayer
git at videolan.org
Mon May 6 02:24:25 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 6 00:01:47 2013 +0200| [ccdaa31d8647903f2cf018a09fa4c925f41e7bfc] | committer: Michael Niedermayer
ff_h264_decode_picture_parameter_set: fix return code
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ccdaa31d8647903f2cf018a09fa4c925f41e7bfc
---
libavcodec/h264_ps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c
index 3cecd30..0cf86c2 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));
More information about the ffmpeg-cvslog
mailing list