[Ffmpeg-cvslog] r6792 - trunk/libavformat/swf.c

aurel subversion
Wed Oct 25 22:05:14 CEST 2006


Author: aurel
Date: Wed Oct 25 22:05:14 2006
New Revision: 6792

Modified:
   trunk/libavformat/swf.c

Log:
fix mp3 in swf decoding

Modified: trunk/libavformat/swf.c
==============================================================================
--- trunk/libavformat/swf.c	(original)
+++ trunk/libavformat/swf.c	Wed Oct 25 22:05:14 2006
@@ -854,6 +854,7 @@
                 }
                 ast->codec->codec_type = CODEC_TYPE_AUDIO;
                 ast->codec->codec_id = CODEC_ID_MP3;
+                ast->need_parsing = 1;
             }
         } else {
             url_fskip(pb, len);
@@ -896,7 +897,8 @@
             for( i=0; i<s->nb_streams; i++ ) {
                 st = s->streams[i];
                 if (st->id == 1) {
-                    av_get_packet(pb, pkt, len);
+                    url_fskip(pb, 4);
+                    av_get_packet(pb, pkt, len-4);
                     pkt->stream_index = st->index;
                     return pkt->size;
                 }




More information about the ffmpeg-cvslog mailing list