dnet audio needs avparser to work with the lavc ac3 decoder.
authorJustin Ruggles <jruggle@earthlink.net>
Mon, 1 Oct 2007 19:48:02 +0000 (19:48 +0000)
committerRoberto Togni <r_togni@tiscali.it>
Mon, 1 Oct 2007 19:48:02 +0000 (19:48 +0000)
Fixes issue 121
Patch by Justin Ruggles

Originally committed as revision 10634 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rmdec.c

index 47f7cf1..bddc011 100644 (file)
@@ -113,6 +113,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVStream *st,
         st->codec->codec_type = CODEC_TYPE_AUDIO;
         if (!strcmp(buf, "dnet")) {
             st->codec->codec_id = CODEC_ID_AC3;
+            st->need_parsing = AVSTREAM_PARSE_FULL;
         } else if (!strcmp(buf, "28_8")) {
             st->codec->codec_id = CODEC_ID_RA_288;
             st->codec->extradata_size= 0;