]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mediacodecdec_common.c
dxva: move d3d11 locking/unlocking to functions
[ffmpeg] / libavcodec / mediacodecdec_common.c
index 2ec25c581d34f8f5009b84161a79589dbaf21683..1263188d3457287d199c84859cfc9eedca41c5a1 100644 (file)
@@ -766,6 +766,13 @@ AVHWAccel ff_hevc_mediacodec_hwaccel = {
     .pix_fmt = AV_PIX_FMT_MEDIACODEC,
 };
 
+AVHWAccel ff_mpeg2_mediacodec_hwaccel = {
+    .name    = "mediacodec",
+    .type    = AVMEDIA_TYPE_VIDEO,
+    .id      = AV_CODEC_ID_MPEG2VIDEO,
+    .pix_fmt = AV_PIX_FMT_MEDIACODEC,
+};
+
 AVHWAccel ff_mpeg4_mediacodec_hwaccel = {
     .name    = "mediacodec",
     .type    = AVMEDIA_TYPE_VIDEO,