Mercurial > libavformat.hg
changeset 2402:8decf7585a94 libavformat
support swink created files which have soi/eoi broken tags reversed
author | bcoudurier |
---|---|
date | Mon, 20 Aug 2007 19:55:37 +0000 |
parents | c356a88cedf6 |
children | a7e0737b3477 |
files | swf.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/swf.c Sat Aug 18 01:26:06 2007 +0000 +++ b/swf.c Mon Aug 20 19:55:37 2007 +0000 @@ -734,8 +734,10 @@ 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 {