Mercurial > libavformat.hg
changeset 2966:354c859bbf66 libavformat
Select non jpeg if there are multiple substreams.
author | michael |
---|---|
date | Sat, 26 Jan 2008 19:50:04 +0000 |
parents | d016b354f1d1 |
children | 2fc866d3614f |
files | mov.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
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; }