mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-19 21:40:00 +01:00
avcodec/mediacodec_wrapper: fix a potential local reference leak in ff_AMediaCodec_getCodecNameByType()
(cherry picked from commit 3f232d713d)
This commit is contained in:
@@ -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") ||
|
||||||
|
|||||||
Reference in New Issue
Block a user