[Ffmpeg-cvslog] r6686 - trunk/libavformat/flvdec.c

rtogni subversion
Fri Oct 13 20:21:28 CEST 2006


Author: rtogni
Date: Fri Oct 13 20:21:28 2006
New Revision: 6686

Modified:
   trunk/libavformat/flvdec.c

Log:
flv files from myspace with mp3 audio require need_parsing because the
frames are fragmented.


Modified: trunk/libavformat/flvdec.c
==============================================================================
--- trunk/libavformat/flvdec.c	(original)
+++ trunk/libavformat/flvdec.c	Fri Oct 13 20:21:28 2006
@@ -176,7 +176,7 @@
             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;




More information about the ffmpeg-cvslog mailing list