mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
st/omx: strcpy the string into the allocated buffer
This fixes commit a001ca98e15(st/omx: keep the name, (name|role)_specific strings dynamically allocated) in which we dynamically allocated the buffers for name and (name|role)_specific yet forgot to copy the encoder strings into them. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80614 Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
parent
f230015206
commit
15b5e663b0
1 changed files with 3 additions and 3 deletions
|
|
@ -125,9 +125,9 @@ OMX_ERRORTYPE vid_enc_LoaderComponent(stLoaderComponentType *comp)
|
|||
if (comp->role_specific[0] == NULL)
|
||||
goto error_specific;
|
||||
|
||||
comp->name = OMX_VID_ENC_BASE_NAME;
|
||||
comp->name_specific[0] = OMX_VID_ENC_AVC_NAME;
|
||||
comp->role_specific[0] = OMX_VID_ENC_AVC_ROLE;
|
||||
strcpy(comp->name, OMX_VID_ENC_BASE_NAME);
|
||||
strcpy(comp->name_specific[0], OMX_VID_ENC_AVC_NAME);
|
||||
strcpy(comp->role_specific[0], OMX_VID_ENC_AVC_ROLE);
|
||||
|
||||
return OMX_ErrorNone;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue