aboutsummaryrefslogtreecommitdiff
path: root/libavformat/electronicarts.c
diff options
context:
space:
mode:
authorPeter Ross2008-11-08 00:39:31 +0000
committerPeter Ross2008-11-08 00:39:31 +0000
commitd2299316ce35e99fc732f17c7c64e9d2f53c5a57 (patch)
treef2a6c7dee773e5acd5ed9ce639e96cf56f06c9ba /libavformat/electronicarts.c
parent28245435d9b732fbb28102de46bed7d678e33d02 (diff)
Electronic Arts demuxer: support TGQ video tags
Originally committed as revision 15791 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/electronicarts.c')
-rw-r--r--libavformat/electronicarts.c9
1 files changed, 9 insertions, 0 deletions
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: