avcodec/hevc_ps: Do not return success on failures in ff_hevc_parse_sps()
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 9 Jul 2015 02:41:08 +0000 (04:41 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 9 Jul 2015 02:50:05 +0000 (04:50 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/hevc_ps.c

index b2428bb..1038516 100644 (file)
@@ -998,6 +998,7 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
                                                  sps, 0)) < 0)
             goto err;
     }
+    ret = AVERROR_INVALIDDATA;
 
     sps->long_term_ref_pics_present_flag = get_bits1(gb);
     if (sps->long_term_ref_pics_present_flag) {