Browse Source

ff_h264_decode_picture_parameter_set: fix return code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
ccdaa31d86
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/h264_ps.c

+ 1
- 1
libavcodec/h264_ps.c View 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));


Loading…
Cancel
Save