fix potential crash issue due to sws_scale() 37/251337/6 accepted/tizen/unified/20210115.004550 submit/tizen/20210114.023654
authorjiyong.min <jiyong.min@samsung.com>
Wed, 13 Jan 2021 00:13:12 +0000 (09:13 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Thu, 14 Jan 2021 00:34:07 +0000 (09:34 +0900)
commit7631341989c7885eb692cf77b92001e757270a82
treebcbc17c08d50b07c642e46be5f38301800d2a4b1
parentd92e61afce9161cf0dd149bcc53b7c5ee798cfb8
fix potential crash issue due to sws_scale()

 - av_malloc() align size and allocate memory for different architecture.
   and sws_scale() use memory without checking.
   so if we use g_malloc(), sws_scale() make crash sometimes.
   we should allocate memory with av_malloc() before using sws_scale().

 - ref. https://trac.ffmpeg.org/ticket/5886/

Change-Id: I893578f2c82ed881de1bbcb92595a3e57d5e3c1e
formats/ffmpeg/mm_file_format_ffmpeg.c
formats/ffmpeg/mm_file_format_frame.c
include/mm_file_formats.h
mm_file.c