ff_h264_decode_picture_parameter_set: fix return code
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 5 May 2013 22:01:47 +0000 (00:01 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 5 May 2013 22:01:47 +0000 (00:01 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/h264_ps.c

index 3cecd30..0cf86c2 100644 (file)
@@ -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));