flv files from myspace with mp3 audio require need_parsing because the
authorRoberto Togni <r_togni@tiscali.it>
Fri, 13 Oct 2006 18:21:28 +0000 (18:21 +0000)
committerRoberto Togni <r_togni@tiscali.it>
Fri, 13 Oct 2006 18:21:28 +0000 (18:21 +0000)
frames are fragmented.

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

libavformat/flvdec.c

index d2b2b44ffbcdb09b9088efaca33857667032970e..f9eefb197dbeb85285ae5aa466a359f857cd2a96 100644 (file)
@@ -176,7 +176,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
             case 0: if (flags&2) st->codec->codec_id = CODEC_ID_PCM_S16BE;
                     else st->codec->codec_id = CODEC_ID_PCM_S8; break;
             case 1: st->codec->codec_id = CODEC_ID_ADPCM_SWF; break;
-            case 2: st->codec->codec_id = CODEC_ID_MP3; break;
+            case 2: st->codec->codec_id = CODEC_ID_MP3; st->need_parsing = 1; break;
             // this is not listed at FLV but at SWF, strange...
             case 3: if (flags&2) st->codec->codec_id = CODEC_ID_PCM_S16LE;
                     else st->codec->codec_id = CODEC_ID_PCM_S8; break;