[FFmpeg-cvslog] r10152 - trunk/libavformat/swf.c

bcoudurier subversion
Mon Aug 20 21:55:38 CEST 2007


Author: bcoudurier
Date: Mon Aug 20 21:55:37 2007
New Revision: 10152

Log:
support swink created files which have soi/eoi broken tags reversed

Modified:
   trunk/libavformat/swf.c

Modified: trunk/libavformat/swf.c
==============================================================================
--- trunk/libavformat/swf.c	(original)
+++ trunk/libavformat/swf.c	Mon Aug 20 21:55:37 2007
@@ -734,8 +734,10 @@ static int swf_read_packet(AVFormatConte
             get_le16(pb); /* BITMAP_ID */
             av_new_packet(pkt, len-2);
             get_buffer(pb, pkt->data, 4);
-            if (AV_RB32(pkt->data) == 0xffd8ffd9) {
+            if (AV_RB32(pkt->data) == 0xffd8ffd9 ||
+                AV_RB32(pkt->data) == 0xffd9ffd8) {
                 /* old SWF files containing SOI/EOI as data start */
+                /* files created by swink have reversed tag */
                 pkt->size -= 4;
                 get_buffer(pb, pkt->data, pkt->size);
             } else {




More information about the ffmpeg-cvslog mailing list