Mercurial > libavformat.hg
diff mov.c @ 2966:354c859bbf66 libavformat
Select non jpeg if there are multiple substreams.
| author | michael |
|---|---|
| date | Sat, 26 Jan 2008 19:50:04 +0000 |
| parents | cb12e3352bf5 |
| children | 2fc866d3614f |
line wrap: on
line diff
--- a/mov.c Sat Jan 26 02:24:35 2008 +0000 +++ b/mov.c Sat Jan 26 19:50:04 2008 +0000 @@ -600,8 +600,10 @@ get_be16(pb); /* reserved */ get_be16(pb); /* index */ - if (st->codec->codec_tag) { - /* multiple fourcc, just skip for now */ + if (st->codec->codec_tag && st->codec->codec_tag != MKTAG('j', 'p', 'e', 'g')) { + /* multiple fourcc, we skip jpeg, this isnt correct, we should export it as + seperate AVStream but this needs a few changes in the mov demuxer, patch + welcome */ url_fskip(pb, size - (url_ftell(pb) - start_pos)); continue; }
