comparison 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
comparison
equal deleted inserted replaced
1422:efeed6e29f9b 1423:2e590fee59bd
2494 if (s->mpeg_enc_ctx_allocated) 2494 if (s->mpeg_enc_ctx_allocated)
2495 MPV_common_end(&s->mpeg_enc_ctx); 2495 MPV_common_end(&s->mpeg_enc_ctx);
2496 return 0; 2496 return 0;
2497 } 2497 }
2498 2498
2499 AVCodec mpeg_decoder = { 2499 AVCodec mpeg1video_decoder = {
2500 "mpegvideo", 2500 "mpeg1video",
2501 CODEC_TYPE_VIDEO, 2501 CODEC_TYPE_VIDEO,
2502 CODEC_ID_MPEG1VIDEO, 2502 CODEC_ID_MPEG1VIDEO,
2503 sizeof(Mpeg1Context),
2504 mpeg_decode_init,
2505 NULL,
2506 mpeg_decode_end,
2507 mpeg_decode_frame,
2508 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED,
2509 .flush= ff_mpeg_flush,
2510 };
2511
2512 AVCodec mpeg2video_decoder = {
2513 "mpeg2video",
2514 CODEC_TYPE_VIDEO,
2515 CODEC_ID_MPEG2VIDEO,
2503 sizeof(Mpeg1Context), 2516 sizeof(Mpeg1Context),
2504 mpeg_decode_init, 2517 mpeg_decode_init,
2505 NULL, 2518 NULL,
2506 mpeg_decode_end, 2519 mpeg_decode_end,
2507 mpeg_decode_frame, 2520 mpeg_decode_frame,