1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00
FFmpeg/libavcodec
Andreas Rheinhardt 85685297c2 avcodec/cbs: Remove redundant checks for CodedBitstreamContext.codec
Setting this field happens immediately after the allocation in
ff_cbs_init(), so the whole CBS code may presume that any
CodedBitstreamContext has this set. Lots of code already presumed this,
yet ff_cbs_close() did it inconsistently: It checked before checking
whether the CodedBitstreamType has a close function; yet it simply
unconditionally read ctx->codec->priv_class. Coverity complained about
this in issue #1473564, which this commit fixes.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2021-03-12 23:21:35 +01:00
..
2021-03-08 09:29:50 +01:00
2021-02-27 17:09:44 +01:00
2021-03-05 19:45:00 +02:00
2021-03-09 13:41:22 +01:00
2021-01-29 19:36:46 +01:00
2021-02-27 17:09:44 +01:00
2021-03-01 06:10:44 +01:00
2021-03-01 17:36:42 +01:00
2021-03-01 17:36:42 +01:00
2021-02-09 15:01:34 +01:00
2021-03-12 18:29:03 +01:00
2021-03-09 13:41:22 +01:00
2021-03-08 19:19:19 +01:00
2021-03-09 13:41:22 +01:00
2021-03-01 06:10:44 +01:00
2021-03-08 09:31:04 +01:00
2021-03-08 19:19:19 +01:00
2021-03-09 13:41:22 +01:00
2021-02-04 17:26:06 +01:00
2021-03-01 17:36:16 +01:00
2021-03-09 13:41:22 +01:00
2021-03-09 13:41:22 +01:00
2021-03-09 13:41:22 +01:00
2021-02-02 14:29:33 +01:00
2021-03-09 13:41:22 +01:00
2021-03-01 17:36:42 +01:00
2021-03-09 13:41:22 +01:00
2021-03-05 19:45:00 +02:00
2021-03-05 19:45:00 +02:00
2021-03-09 13:41:22 +01:00