mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/mediacodec_wrapper: fix a potential local reference leak in ff_AMediaCodec_getCodecNameByType()
This commit is contained in:
parent
9cb8875c16
commit
3f232d713d
@ -469,6 +469,11 @@ char *ff_AMediaCodecList_getCodecNameByType(const char *mime, int profile, int e
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (codec_name) {
|
||||||
|
(*env)->DeleteLocalRef(env, codec_name);
|
||||||
|
codec_name = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* Skip software decoders */
|
/* Skip software decoders */
|
||||||
if (
|
if (
|
||||||
strstr(name, "OMX.google") ||
|
strstr(name, "OMX.google") ||
|
||||||
|
Loading…
Reference in New Issue
Block a user