aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_cabac.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-03-30 02:50:02 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-07-02 23:56:13 +0200
commita7e278e467600dcaec47dacb2e2fbfb56ac77505 (patch)
treeddc8d979e0ebfb1991c0cd2f6ef98a4e8107f668 /libavcodec/h264_cabac.c
parentc4c3d3bc1de75a112f84cfae319c3d30aa6d8a90 (diff)
downloadffmpeg-a7e278e467600dcaec47dacb2e2fbfb56ac77505.tar.gz
avformat/webmdashenc: Check codec types
The WebM DASH Manifest muxer only supports VP8, VP9, Vorbis and Opus, but there was no check for this. The codec type is used to get a pointer to a string containing the codec name or NULL if it is not one of those four codecs. Said pointer has then been used without further checks as string for the %s conversion specifier in an avio_printf()) call which is undefined behaviour. This commit adds a check for the supported codec types. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit cbea58b2b35c6409e062c929f0b2ab763b8661eb) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/h264_cabac.c')
0 files changed, 0 insertions, 0 deletions