|
|
|
@@ -2471,6 +2471,18 @@ static int mpeg_decode_end(AVCodecContext *avctx) |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
static const AVProfile mpeg2_video_profiles[] = { |
|
|
|
{ FF_PROFILE_MPEG2_422, "4:2:2" }, |
|
|
|
{ FF_PROFILE_MPEG2_HIGH, "High" }, |
|
|
|
{ FF_PROFILE_MPEG2_SS, "Spatially Scalable" }, |
|
|
|
{ FF_PROFILE_MPEG2_SNR_SCALABLE, "SNR Scalable" }, |
|
|
|
{ FF_PROFILE_MPEG2_MAIN, "Main" }, |
|
|
|
{ FF_PROFILE_MPEG2_SIMPLE, "Simple" }, |
|
|
|
{ FF_PROFILE_RESERVED, "Reserved" }, |
|
|
|
{ FF_PROFILE_RESERVED, "Reserved" }, |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
AVCodec ff_mpeg1video_decoder = { |
|
|
|
"mpeg1video", |
|
|
|
AVMEDIA_TYPE_VIDEO, |
|
|
|
@@ -2499,6 +2511,7 @@ AVCodec ff_mpeg2video_decoder = { |
|
|
|
.flush= flush, |
|
|
|
.max_lowres= 3, |
|
|
|
.long_name= NULL_IF_CONFIG_SMALL("MPEG-2 video"), |
|
|
|
.profiles = NULL_IF_CONFIG_SMALL(mpeg2_video_profiles), |
|
|
|
}; |
|
|
|
|
|
|
|
//legacy decoder |
|
|
|
|