Skip to content

Commit

Permalink
Reencode audio when codec_tag !=0
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Jan 23, 2025
1 parent f8cfdfe commit 0270164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zm_videostore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ bool VideoStore::open() {
if (audio_in_stream) {
Debug(2, "Have audio_in_stream %p", audio_in_stream);

if (CODEC(audio_in_stream)->codec_id != AV_CODEC_ID_AAC) {
if (CODEC(audio_in_stream)->codec_id != AV_CODEC_ID_AAC or CODEC(audio_in_stream)->codec_tag != 0) {
audio_out_codec = avcodec_find_encoder(AV_CODEC_ID_AAC);
if (!audio_out_codec) {
Error("Could not find codec for AAC");
Expand Down

0 comments on commit 0270164

Please sign in to comment.