diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-01-26 19:50:04 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-01-26 19:50:04 +0000 |
commit | 0bc4728e3b5e000682c7263419df4593d165eab7 (patch) | |
tree | b1dde6bca2cd44517a7beb7285734cf7f2a4bd5b /libavformat/mov.c | |
parent | 1521c500da63bef79da2bc664cfa96eebbccacfd (diff) | |
download | ffmpeg-0bc4728e3b5e000682c7263419df4593d165eab7.tar.gz |
Select non jpeg if there are multiple substreams.
Originally committed as revision 11621 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 2da510f423..bb9b3f6beb 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -600,8 +600,10 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) 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; } |