Skip to content

Commit

Permalink
fixed last ChannelLayout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelrahim-hentabli committed Apr 28, 2024
1 parent ac9f265 commit 49dd975
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/common/dump_mp4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ static void add_stream(OutputStream *ost, AVFormatContext *oc,
}
ost->enc = c;

#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(58, 0, 0)
const AVChannelLayout temp = AV_CHANNEL_LAYOUT_STEREO;
#endif

switch ((*codec)->type) {
case AVMEDIA_TYPE_AUDIO:
c->sample_fmt =
Expand Down

0 comments on commit 49dd975

Please sign in to comment.