diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-09 20:16:04 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-12 23:21:35 +0100 |
commit | 85685297c28958f3a8fa50a50ed3a6171e7f34c2 (patch) | |
tree | 6411945476ff0cd3208cf9a7207a6403e1fe1d2b /libavcodec/aarch64/vp9dsp_init.h | |
parent | 30cd7feb2dd497b16edb6d7c09a83eb49f89645d (diff) | |
download | ffmpeg-85685297c28958f3a8fa50a50ed3a6171e7f34c2.tar.gz |
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>
Diffstat (limited to 'libavcodec/aarch64/vp9dsp_init.h')
0 files changed, 0 insertions, 0 deletions