From: Minje Ahn Date: Mon, 10 Aug 2020 05:34:32 +0000 (+0900) Subject: Fix a bug in mmfile_format_open_ffmpg() X-Git-Tag: submit/tizen/20200810.055506^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c8244d9439d24de1626577baba03c9923b09fe9;p=platform%2Fcore%2Fmultimedia%2Flibmm-fileinfo.git Fix a bug in mmfile_format_open_ffmpg() Fixed exception handling error. Change-Id: I888604685c3de075a14077197f83d952dd7009db Signed-off-by: Minje Ahn --- diff --git a/formats/ffmpeg/mm_file_format_ffmpeg.c b/formats/ffmpeg/mm_file_format_ffmpeg.c index 2da6a63..76e0fd9 100644 --- a/formats/ffmpeg/mm_file_format_ffmpeg.c +++ b/formats/ffmpeg/mm_file_format_ffmpeg.c @@ -345,7 +345,7 @@ int mmfile_format_open_ffmpg(MMFileFormatContext *formatContext) avio_ctx_buffer = av_malloc(MMFILE_AVIO_BUFFER_LEN); mm_file_retvm_if_fails(DEBUG, avio_ctx_buffer, MMFILE_UTIL_FAIL); - if (__mmf_mem_open(&handle, formatContext->uriFileName)) { + if (!__mmf_mem_open(&handle, formatContext->uriFileName)) { debug_error(DEBUG, "failed to _mmf_mem_open."); goto exception; }