[FFmpeg-devel,3/4] lavf/utils: add MP2 to the probing list

Submitted by Rodger Combs on Oct. 19, 2017, 7:39 a.m.

Details

Message ID 20171019073948.23683-3-rodger.combs@gmail.com
State New
Headers show

Commit Message

Rodger Combs Oct. 19, 2017, 7:39 a.m.
---
 libavformat/utils.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jan Ekström Oct. 19, 2017, 8:19 a.m.
On Thu, Oct 19, 2017 at 10:39 AM, Rodger Combs <rodger.combs@gmail.com> wrote:
> ---

Seems like a valid change to enable the following change of enabling
probing in movdec for mp2/3 in ISOBMFF.

Jan
Michael Niedermayer Oct. 20, 2017, 10:40 p.m.
On Thu, Oct 19, 2017 at 02:39:47AM -0500, Rodger Combs wrote:
> ---
>  libavformat/utils.c | 1 +
>  1 file changed, 1 insertion(+)

shoud be ok

[...]

Patch hide | download patch | download mbox

diff --git a/libavformat/utils.c b/libavformat/utils.c
index a54687d239..416152eb39 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -329,6 +329,7 @@  static int set_codec_from_probe_data(AVFormatContext *s, AVStream *st,
         { "loas",      AV_CODEC_ID_AAC_LATM,   AVMEDIA_TYPE_AUDIO },
         { "m4v",       AV_CODEC_ID_MPEG4,      AVMEDIA_TYPE_VIDEO },
         { "mjpeg_2000",AV_CODEC_ID_JPEG2000,   AVMEDIA_TYPE_VIDEO },
+        { "mp2",       AV_CODEC_ID_MP2,        AVMEDIA_TYPE_AUDIO },
         { "mp3",       AV_CODEC_ID_MP3,        AVMEDIA_TYPE_AUDIO },
         { "mpegvideo", AV_CODEC_ID_MPEG2VIDEO, AVMEDIA_TYPE_VIDEO },
         { "truehd",    AV_CODEC_ID_TRUEHD,     AVMEDIA_TYPE_AUDIO },