From 2aaa6119218f8c6a509d8b9897fe0d99fa0d665e Mon Sep 17 00:00:00 2001 From: Nathan Schulte Date: Sun, 18 Oct 2020 22:38:23 -0500 Subject: [PATCH] ffmpeg: force-disable zerocopy for RPi OMX patch --- .../force-disable-rpi-omx-input-zerocopy.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 package/ffmpeg/force-disable-rpi-omx-input-zerocopy.patch diff --git a/package/ffmpeg/force-disable-rpi-omx-input-zerocopy.patch b/package/ffmpeg/force-disable-rpi-omx-input-zerocopy.patch new file mode 100644 index 00000000000..c06088caffb --- /dev/null +++ b/package/ffmpeg/force-disable-rpi-omx-input-zerocopy.patch @@ -0,0 +1,15 @@ +diff --git a/libavcodec/omx.c b/libavcodec/omx.c +index 19b4f33836..4641dc79e2 100644 +--- a/libavcodec/omx.c ++++ b/libavcodec/omx.c +@@ -644,6 +644,10 @@ static av_cold int omx_encode_init(AVCodecContext *avctx) + OMX_BUFFERHEADERTYPE *buffer; + OMX_ERRORTYPE err; + ++#if CONFIG_OMX_RPI ++ s->input_zerocopy = 0; ++#endif ++ + s->omx_context = omx_init(avctx, s->libname, s->libprefix); + if (!s->omx_context) + return AVERROR_ENCODER_NOT_FOUND;