History

vd_lavc: nuke some mmal remnants

343a5fd345a84572ea5693a805119067d5b0fbc8 killed all mmal hardware decoding, but there was still some junk lying around. There's IMGFMT_MMAL still, but that's harmless to keep around.

Dudemanguy committed 1 year ago

Commit cd5378e1 parent 97e4cd31 file · +0 −8Browse files

Unified · Split

video/decode/vd_lavc.c+0−8
@@ -274,8 +274,6 @@ const struct autoprobe_info hwdec_autoprobe_info[] = { · 273 unmodified lines
274274 {"vdpau-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
275275 {"drm", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
276276 {"drm-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
277− {"mmal", HWDEC_FLAG_AUTO},
278− {"mmal-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
279277 {"mediacodec", HWDEC_FLAG_AUTO},
280278 {"mediacodec-copy", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
281279 {"videotoolbox", HWDEC_FLAG_AUTO | HWDEC_FLAG_WHITELIST},
@@ -723,10 +721,6 @@ static void init_avctx(struct mp_filter *vd) · 441 unmodified lines
723721
724722 ctx->codec_timebase = mp_get_codec_timebase(ctx->codec);
725723
726− // This decoder does not read pkt_timebase correctly yet.
727− if (strstr(lavc_codec->name, "_mmal"))
728− ctx->codec_timebase = (AVRational){1, 1000000};
729−
730724 ctx->hwdec_failed = false;
731725 ctx->hwdec_request_reinit = false;
732726 ctx->avctx = avcodec_alloc_context3(lavc_codec);
@@ -1360,8 +1354,6 @@ static int control(struct mp_filter *vd, enum dec_ctrl cmd, void *arg) · 627 unmodified lines
13601354 AVCodecContext *avctx = ctx->avctx;
13611355 if (!avctx)
13621356 break;
1363− if (ctx->use_hwdec && strcmp(ctx->hwdec.method_name, "mmal") == 0)
1364− break; // MMAL has arbitrary buffering, thus unknown
13651357 *(int *)arg = avctx->has_b_frames;
13661358 return CONTROL_TRUE;
13671359 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t