mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/iamf_writer: remove bogus check
Probably an artifact of a rebase, as this check is done below. Fixes "Conditional jump or move depends on uninitialised value(s)" errors as reported by Valgrind. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
b6af126c72
commit
9813df77d6
@ -750,11 +750,6 @@ static int iamf_write_mixing_presentation(const IAMFContext *iamf,
|
|||||||
int album = submix_layout->album_anchored_loudness.num &&
|
int album = submix_layout->album_anchored_loudness.num &&
|
||||||
submix_layout->album_anchored_loudness.den;
|
submix_layout->album_anchored_loudness.den;
|
||||||
|
|
||||||
if (layout == FF_ARRAY_ELEMS(ff_iamf_sound_system_map)) {
|
|
||||||
av_log(log_ctx, AV_LOG_ERROR, "Invalid Sound System value in a submix\n");
|
|
||||||
return AVERROR(EINVAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (submix_layout->layout_type == AV_IAMF_SUBMIX_LAYOUT_TYPE_LOUDSPEAKERS) {
|
if (submix_layout->layout_type == AV_IAMF_SUBMIX_LAYOUT_TYPE_LOUDSPEAKERS) {
|
||||||
for (layout = 0; layout < FF_ARRAY_ELEMS(ff_iamf_sound_system_map); layout++) {
|
for (layout = 0; layout < FF_ARRAY_ELEMS(ff_iamf_sound_system_map); layout++) {
|
||||||
if (!av_channel_layout_compare(&submix_layout->sound_system, &ff_iamf_sound_system_map[layout].layout))
|
if (!av_channel_layout_compare(&submix_layout->sound_system, &ff_iamf_sound_system_map[layout].layout))
|
||||||
|
Loading…
Reference in New Issue
Block a user