Skip to content

Commit

Permalink
[coreMuxerFfmpeg] Remove assert on unsupported bits per sample value …
Browse files Browse the repository at this point in the history
…for a PCM audio track, improve debug message
  • Loading branch information
eumagga0x2a committed Apr 3, 2023
1 parent c5ace7f commit a1d83b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avidemux_core/ADM_coreMuxer/src/ADM_coreMuxerFfmpeg.cpp
Expand Up @@ -330,7 +330,7 @@ bool muxerFFmpeg::initAudio(uint32_t nbAudioTrack,ADM_audioStream **audio)
{
case 16: par->codec_id = bigEndian? AV_CODEC_ID_PCM_S16BE : AV_CODEC_ID_PCM_S16LE; break;
case 24: par->codec_id = bigEndian? AV_CODEC_ID_PCM_S24BE : AV_CODEC_ID_PCM_S24LE; break;
default: ADM_error("Unsupported bits per sample value: %u\n",audioheader->bitspersample); ADM_assert(0); break;
default: ADM_error("Track %d / %u: unsupported bits per sample value %u for PCM\n", i, nbAudioTrack, audioheader->bitspersample); return false;
}
}
break;
Expand Down

0 comments on commit a1d83b2

Please sign in to comment.