mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 19:56:35 +00:00
ffmpeg: force-disable zerocopy for RPi OMX patch
This commit is contained in:
parent
1eaa35876d
commit
2aaa611921
15
package/ffmpeg/force-disable-rpi-omx-input-zerocopy.patch
Normal file
15
package/ffmpeg/force-disable-rpi-omx-input-zerocopy.patch
Normal file
@ -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;
|
Loading…
x
Reference in New Issue
Block a user