comparison 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
comparison
equal deleted inserted replaced
2965:d016b354f1d1 2966:354c859bbf66
598 598
599 get_be32(pb); /* reserved */ 599 get_be32(pb); /* reserved */
600 get_be16(pb); /* reserved */ 600 get_be16(pb); /* reserved */
601 get_be16(pb); /* index */ 601 get_be16(pb); /* index */
602 602
603 if (st->codec->codec_tag) { 603 if (st->codec->codec_tag && st->codec->codec_tag != MKTAG('j', 'p', 'e', 'g')) {
604 /* multiple fourcc, just skip for now */ 604 /* multiple fourcc, we skip jpeg, this isnt correct, we should export it as
605 seperate AVStream but this needs a few changes in the mov demuxer, patch
606 welcome */
605 url_fskip(pb, size - (url_ftell(pb) - start_pos)); 607 url_fskip(pb, size - (url_ftell(pb) - start_pos));
606 continue; 608 continue;
607 } 609 }
608 610
609 st->codec->codec_tag = format; 611 st->codec->codec_tag = format;