[FFmpeg-devel] [PATCH] als in mp4

Alex Converse alex.converse
Sat Mar 21 15:19:54 CET 2009


On Sat, Mar 21, 2009 at 1:50 AM, Jai Menon <jmenon86 at gmail.com> wrote:
>
> Hi,
>
> Attached :
>
> 1) demux als streams from mp4, als codec id and minor lavc version bump
> 2) mux als in to mp4, add isomedia type
>
> --
> Regards,
>
> Jai
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel

> Index: libavformat/mov.c
> ===================================================================
> --- libavformat/mov.c??? (revision 18065)
> +++ libavformat/mov.c??? (working copy)
> @@ -426,6 +426,11 @@
> ????????????????????????????????????????? st->codec->extradata_size);
> ???????????????? if (cfg.chan_config > 7)
> ???????????????????? return -1;
> +??????????????? if(cfg.object_type == 36) {
> +??????????????????? st->codec->codec_id = CODEC_ID_MP4ALS;
> +??????????????????? st->codec->codec_type = CODEC_TYPE_AUDIO;
> +??????????????????? return 0;
> +??????????????? }
> ???????????????? st->codec->channels = ff_mpeg4audio_channels[cfg.chan_config];
>???????????????? if (cfg.object_type == 29 && cfg.sampling_index < 3) // old mp3on4
>???????????????????? st->codec->sample_rate = ff_mpa_freq_tab[cfg.sampling_index];

I hope this isn't too bikeshedy but can this be made part of the
codec_get_id section below.

Also why do we skip out on setting the sample_rate, is it wrong / inaccurate?

Otherwise good work,

Alex Converse



More information about the ffmpeg-devel mailing list