diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-07-09 04:41:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-07-09 04:50:05 +0200 |
commit | 1dacf26964c9a65380ca615d1fc09302218a539e (patch) | |
tree | 6281e9902269c40867f4f4af4cf2286bb9924930 | |
parent | 1d4194e69696e615b5bbf7273103b05241dc75b8 (diff) | |
download | ffmpeg-1dacf26964c9a65380ca615d1fc09302218a539e.tar.gz |
avcodec/hevc_ps: Do not return success on failures in ff_hevc_parse_sps()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/hevc_ps.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index b2428bbe1c..10385166bf 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -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) { |