Skip to content

Commit

Permalink
Merge pull request #2547 from nmschulte/dev
Browse files Browse the repository at this point in the history
ffmpeg: force-disable zerocopy for RPi OMX patch
  • Loading branch information
ccrisan authored Oct 24, 2020
2 parents 1eaa358 + 2aaa611 commit b2182bb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions package/ffmpeg/force-disable-rpi-omx-input-zerocopy.patch
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit b2182bb

Please sign in to comment.