Skip to content

Commit

Permalink
bcm: Set the right OMX core version for broadcom
Browse files Browse the repository at this point in the history
This might be specific to RPi since the clients on Android
normally just signal 1.1.0 as version.
  • Loading branch information
mstorsjo committed Mar 31, 2016
1 parent 9b368db commit 9643a2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libavcodec/omx.c
Expand Up @@ -380,6 +380,8 @@ static av_cold int omx_component_init(AVCodecContext *avctx, const char *role, i

s->version.s.nVersionMajor = 1;
s->version.s.nVersionMinor = 1; // Required by Bellagio, set to 0 for other uses
if (av_strstart(s->component_name, "OMX.broadcom.", NULL))
s->version.s.nRevision = 2;
#define INIT_STRUCT(x) do { x.nSize = sizeof(x); x.nVersion = s->version; } while (0)

err = omx_context->ptr_GetHandle(&s->handle, s->component_name, s, (OMX_CALLBACKTYPE*) &callbacks);
Expand Down

0 comments on commit 9643a2a

Please sign in to comment.