comparison mpeg12.c @ 1615:721a76648a4b libavcodec

mpegvideo is back
author iive
date Wed, 12 Nov 2003 01:19:36 +0000
parents 932d306bf1dc
children 161632b8dbb4
comparison
equal deleted inserted replaced
1614:6c82ef97d3e6 1615:721a76648a4b
2653 mpeg_decode_frame, 2653 mpeg_decode_frame,
2654 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED, 2654 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED,
2655 .flush= ff_mpeg_flush, 2655 .flush= ff_mpeg_flush,
2656 }; 2656 };
2657 2657
2658 //legacy decoder
2659 AVCodec mpegvideo_decoder = {
2660 "mpegvideo",
2661 CODEC_TYPE_VIDEO,
2662 CODEC_ID_MPEG2VIDEO,
2663 sizeof(Mpeg1Context),
2664 mpeg_decode_init,
2665 NULL,
2666 mpeg_decode_end,
2667 mpeg_decode_frame,
2668 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED,
2669 .flush= ff_mpeg_flush,
2670 };
2671
2658 #ifdef HAVE_XVMC 2672 #ifdef HAVE_XVMC
2659 static int mpeg_mc_decode_init(AVCodecContext *avctx){ 2673 static int mpeg_mc_decode_init(AVCodecContext *avctx){
2660 Mpeg1Context *s; 2674 Mpeg1Context *s;
2661 2675
2662 if( !(avctx->slice_flags & SLICE_FLAG_CODED_ORDER) ) 2676 if( !(avctx->slice_flags & SLICE_FLAG_CODED_ORDER) )