From d2299316ce35e99fc732f17c7c64e9d2f53c5a57 Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Sat, 8 Nov 2008 00:39:31 +0000 Subject: [PATCH] Electronic Arts demuxer: support TGQ video tags Originally committed as revision 15791 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/electronicarts.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c index 09da524ffd..2eb586895e 100644 --- a/libavformat/electronicarts.c +++ b/libavformat/electronicarts.c @@ -47,6 +47,8 @@ #define mTCD_TAG MKTAG('m', 'T', 'C', 'D') /* MDEC */ #define MADk_TAG MKTAG('M', 'A', 'D', 'k') /* MAD i-frame */ #define MPCh_TAG MKTAG('M', 'P', 'C', 'h') /* MPEG2 */ +#define TGQs_TAG MKTAG('T', 'G', 'Q', 's') /* TGQ i-frame (appears in .TGQ files) */ +#define pQGT_TAG MKTAG('p', 'Q', 'G', 'T') /* TGQ i-frame (appears in .UV files) */ #define MVhd_TAG MKTAG('M', 'V', 'h', 'd') #define MV0K_TAG MKTAG('M', 'V', '0', 'K') #define MV0F_TAG MKTAG('M', 'V', '0', 'F') @@ -341,6 +343,11 @@ static int process_ea_header(AVFormatContext *s) { ea->video_codec = CODEC_ID_MPEG2VIDEO; break; + case pQGT_TAG: + case TGQs_TAG: + ea->video_codec = CODEC_ID_TGQ; + break; + case MVhd_TAG : err = process_video_header_vp6(s); break; @@ -497,6 +504,8 @@ static int ea_read_packet(AVFormatContext *s, case MVIh_TAG: case kVGT_TAG: + case pQGT_TAG: + case TGQs_TAG: key = PKT_FLAG_KEY; case MVIf_TAG: case fVGT_TAG: