diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-03-30 03:50:02 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-02 11:15:07 +0300 |
commit | 8bc99045137fa0b69dc5cfe807cbd2dddc66b6be (patch) | |
tree | 0bfc8a96d9e60cf1eb289ad5318efba4ed9f79d7 /libavfilter/vf_pullup.c | |
parent | f9f3fd9387921957ee93b8081e355596b49e6e82 (diff) |
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 'libavfilter/vf_pullup.c')
0 files changed, 0 insertions, 0 deletions