Skip to content

Commit

Permalink
movenc changes
Browse files Browse the repository at this point in the history
Signed-off-by: Umair Khan <omerjerk@gmail.com>
  • Loading branch information
omerjerk committed Aug 16, 2016
1 parent 45ab2ee commit 3d7bbf9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libavformat/movenc.c
Expand Up @@ -710,7 +710,8 @@ static int mov_write_wave_tag(AVFormatContext *s, AVIOContext *pb, MOVTrack *tra
} else if (track->par->codec_id == AV_CODEC_ID_EAC3) {
mov_write_eac3_tag(pb, track);
} else if (track->par->codec_id == AV_CODEC_ID_ALAC ||
track->par->codec_id == AV_CODEC_ID_QDM2) {
track->par->codec_id == AV_CODEC_ID_QDM2 ||
track->par->codec_id == AV_CODEC_ID_MP4ALS) {
mov_write_extradata_tag(pb, track);
} else if (track->par->codec_id == AV_CODEC_ID_ADPCM_MS ||
track->par->codec_id == AV_CODEC_ID_ADPCM_IMA_WAV) {
Expand Down Expand Up @@ -992,6 +993,7 @@ static int mov_write_audio_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContex
track->par->codec_id == AV_CODEC_ID_ADPCM_MS ||
track->par->codec_id == AV_CODEC_ID_ADPCM_IMA_WAV ||
track->par->codec_id == AV_CODEC_ID_QDM2 ||
track->par->codec_id == AV_CODEC_ID_MP4ALS ||
(mov_pcm_le_gt16(track->par->codec_id) && version==1) ||
(mov_pcm_be_gt16(track->par->codec_id) && version==1)))
mov_write_wave_tag(s, pb, track);
Expand All @@ -1003,7 +1005,7 @@ static int mov_write_audio_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContex
mov_write_ac3_tag(pb, track);
else if (track->par->codec_id == AV_CODEC_ID_EAC3)
mov_write_eac3_tag(pb, track);
else if (track->par->codec_id == AV_CODEC_ID_ALAC)
else if (track->par->codec_id == AV_CODEC_ID_ALAC || track->par->codec_id == AV_CODEC_ID_MP4ALS)
mov_write_extradata_tag(pb, track);
else if (track->par->codec_id == AV_CODEC_ID_WMAPRO)
mov_write_wfex_tag(s, pb, track);
Expand Down

0 comments on commit 3d7bbf9

Please sign in to comment.