diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-28 02:24:16 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-05-03 12:44:54 +0200 |
commit | ca0a38f2f7803ab8fa12913d0385d4c70f8d6345 (patch) | |
tree | 2d69f2f082a7a90ad3974757ac812bf8745ad8a0 /libavcodec/arm/vp9itxfm_16bpp_neon.S | |
parent | d13feae0f85bebdd35e44ccbadf974b10dc3cef1 (diff) | |
download | ffmpeg-ca0a38f2f7803ab8fa12913d0385d4c70f8d6345.tar.gz |
avformat/matroskaenc: Replace impossible condition with assert
If a FLAC track uses an unconventional channel layout, the Matroska
muxer adds a WAVEFORMATEXTENSIBLE_CHANNEL_MASK VorbisComment to the
CodecPrivate to preserve this information. And given that FLAC uses
24bit length fields, the muxer checks if the length is more than this
and errors out if it is.
Yet this can never happen, because we create the AVDictionary that is
the source for the VorbisComment. It only contains exactly one entry
that can't grow infinitely large (in fact, the length of the
VorbisComment is <= 4 + 33 + 1 + 18 + strlen(LIBAVFORMAT_IDENT)).
So we can simply assert the size to be < (1 << 24) - 4.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/arm/vp9itxfm_16bpp_neon.S')
0 files changed, 0 insertions, 0 deletions