diff mpeg12.c @ 1423:2e590fee59bd libavcodec

mpeg2 regression test add mpeg2video_decoder, thats more consistant with the encoders, note, both mpeg1video and mpeg2video decoder will happily decode both mpeg1 and 2
author michaelni
date Tue, 26 Aug 2003 07:42:25 +0000
parents 340c90faa1dc
children a62c54167251
line wrap: on
line diff
--- a/mpeg12.c	Mon Aug 25 22:54:53 2003 +0000
+++ b/mpeg12.c	Tue Aug 26 07:42:25 2003 +0000
@@ -2496,8 +2496,8 @@
     return 0;
 }
 
-AVCodec mpeg_decoder = {
-    "mpegvideo",
+AVCodec mpeg1video_decoder = {
+    "mpeg1video",
     CODEC_TYPE_VIDEO,
     CODEC_ID_MPEG1VIDEO,
     sizeof(Mpeg1Context),
@@ -2509,6 +2509,19 @@
     .flush= ff_mpeg_flush,
 };
 
+AVCodec mpeg2video_decoder = {
+    "mpeg2video",
+    CODEC_TYPE_VIDEO,
+    CODEC_ID_MPEG2VIDEO,
+    sizeof(Mpeg1Context),
+    mpeg_decode_init,
+    NULL,
+    mpeg_decode_end,
+    mpeg_decode_frame,
+    CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED,
+    .flush= ff_mpeg_flush,
+};
+
 #ifdef HAVE_XVMC
 static int mpeg_mc_decode_init(AVCodecContext *avctx){
     Mpeg1Context *s;