From 46da7fa133bcce2053d04fbb11ecd66b27a0c81e Mon Sep 17 00:00:00 2001
From: Joakim Plate <elupus@ecce.se>
Date: Wed, 31 Mar 2010 10:45:15 +0000
Subject: [PATCH] Probe aac codecs for CODEC_ID_PROBE.

Patch by Joakim Plate, elupus ecce se

Originally committed as revision 22742 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/utils.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 8b57b39d596..23731a8e6b3 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -370,6 +370,9 @@ static int set_codec_from_probe_data(AVFormatContext *s, AVStream *st, AVProbeDa
         } else if (!strcmp(fmt->name, "dts")) {
             st->codec->codec_id = CODEC_ID_DTS;
             st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
+        } else if (!strcmp(fmt->name, "aac")) {
+            st->codec->codec_id = CODEC_ID_AAC;
+            st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
         }
     }
     return !!fmt;
-- 
GitLab