From f6c6232941671095b0a857a5a5c5392f52d6c3aa Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 15 Aug 2023 15:02:29 +0200 Subject: Remove now-unnecessary assertion. Since e29ce33a36c2e20444d57196defc86d5072bce81 channels is the number of channels in the frame, and also the number in data, so we don't need to check this any more. --- src/lib/ffmpeg_decoder.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'src/lib/ffmpeg_decoder.cc') diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 9f505ea43..477dcda19 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -360,7 +360,6 @@ deinterleave_audio(shared_ptr stream, AVFrame* frame) case AV_SAMPLE_FMT_FLTP: { auto p = reinterpret_cast (frame->data); - DCPOMATIC_ASSERT(channels <= stream->channels()); for (int i = 0; i < channels; ++i) { memcpy (data[i], p[i], frames * sizeof(float)); } -- cgit v1.2.3