Support Electronic Arts files containing MPEG2VIDEO.
authorPeter Ross <pross@xvid.org>
Tue, 12 Aug 2008 08:32:59 +0000 (08:32 +0000)
committerPeter Ross <pross@xvid.org>
Tue, 12 Aug 2008 08:32:59 +0000 (08:32 +0000)
Originally committed as revision 14708 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/electronicarts.c

index 5aa033a0ca3430cad130403aa6658fcf73f1fd99..3ac0f4f1bff57bcbed1de9e5fdb818c2d725cd9f 100644 (file)
@@ -331,6 +331,10 @@ static int process_ea_header(AVFormatContext *s) {
                 err = process_video_header_mdec(s);
                 break;
 
+            case MPCh_TAG:
+                ea->video_codec = CODEC_ID_MPEG2VIDEO;
+                break;
+
             case MVhd_TAG :
                 err = process_video_header_vp6(s);
                 break;
@@ -490,6 +494,7 @@ static int ea_read_packet(AVFormatContext *s,
             goto get_video_packet;
 
         case MV0K_TAG:
+        case MPCh_TAG:
             key = PKT_FLAG_KEY;
         case MV0F_TAG:
 get_video_packet: