[FFmpeg-cvslog] avcodec/hevc_ps: Do not return success on failures in ff_hevc_parse_sps()
Michael Niedermayer
git at videolan.org
Thu Jul 9 04:57:13 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jul 9 04:41:08 2015 +0200| [1dacf26964c9a65380ca615d1fc09302218a539e] | committer: Michael Niedermayer
avcodec/hevc_ps: Do not return success on failures in ff_hevc_parse_sps()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1dacf26964c9a65380ca615d1fc09302218a539e
---
libavcodec/hevc_ps.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index b2428bb..1038516 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) {
More information about the ffmpeg-cvslog
mailing list