Fix a bug in mmfile_format_open_ffmpg() 10/240610/1 accepted/tizen/unified/20200811.050345 submit/tizen/20200810.055506
authorMinje Ahn <minje.ahn@samsung.com>
Mon, 10 Aug 2020 05:34:32 +0000 (14:34 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Mon, 10 Aug 2020 05:34:32 +0000 (14:34 +0900)
Fixed exception handling error.

Change-Id: I888604685c3de075a14077197f83d952dd7009db
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
formats/ffmpeg/mm_file_format_ffmpeg.c

index 2da6a63..76e0fd9 100644 (file)
@@ -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;
                }