# HG changeset patch # User michael # Date 1202262692 0 # Node ID 800db1ceafc6d0072ab9f4d0281cdd52308c16d5 # Parent 6f393e79e89664dd5b50797e485c6f1c404bfb0d Allow the user to select which codec out of several in stsd he wants. diff -r 6f393e79e896 -r 800db1ceafc6 mov.c --- a/mov.c Tue Feb 05 01:16:47 2008 +0000 +++ b/mov.c Wed Feb 06 01:51:32 2008 +0000 @@ -600,7 +600,10 @@ get_be16(pb); /* reserved */ get_be16(pb); /* index */ - if (st->codec->codec_tag && st->codec->codec_tag != MKTAG('j', 'p', 'e', 'g')) { + if (st->codec->codec_tag && + (c->fc->video_codec_id ? codec_get_id(codec_movvideo_tags, format) != c->fc->video_codec_id + : 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 */