diff options
author | Alex Converse <alex.converse@gmail.com> | 2010-03-08 00:00:50 +0000 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2010-03-08 00:00:50 +0000 |
commit | e7e291e96016a3ae0143d1ead35d4dbe5134a157 (patch) | |
tree | c333ec0d376308611283f48d8fc56f20f50c69e5 /libavformat/utils.c | |
parent | 3b2142af9997f7a9e3acff0db1445a4e27b919ed (diff) | |
download | ffmpeg-e7e291e96016a3ae0143d1ead35d4dbe5134a157.tar.gz |
av_find_stream_info(): Add a workaround for backwards compatible HE-AAC signaling.
The sample rate, frame size, and channel count from the container are
not reliable when backwards compatible signaling is used.
Originally committed as revision 22301 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index d431d42bdd..325d7c0b65 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2116,6 +2116,11 @@ int av_find_stream_info(AVFormatContext *ic) for(i=0;i<ic->nb_streams;i++) { st = ic->streams[i]; + if (st->codec->codec_id == CODEC_ID_AAC) { + st->codec->sample_rate = 0; + st->codec->frame_size = 0; + st->codec->channels = 0; + } if(st->codec->codec_type == CODEC_TYPE_VIDEO){ /* if(!st->time_base.num) st->time_base= */ |