Add to limit 'probesize' for getting stream information. 77/266177/7 accepted/tizen/unified/20211115.141625 submit/tizen/20211112.015536
authorJiyong Min <jiyong.min@samsung.com>
Tue, 9 Nov 2021 02:40:16 +0000 (11:40 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Thu, 11 Nov 2021 03:25:06 +0000 (12:25 +0900)
commit298150a5d548171f2cbb5957ee35311f5b115baa
tree9080007c4dd4c15ab44cf2377b3d879ea9edea18
parentb1207b82c4d1b88d5a73adf1249db3100df5422c
Add to limit 'probesize' for getting stream information.

[Problem]
Crash occurred for 8k contents due to mem-usage limitation on TV.
[Cause]
After getting stream information, 'ffmpeg' decode frames to probe it.
Decoding 8k video need lots of memory. About 33MB is used for each video frame.
[Solution]
Prevent probing stream information by 'probesize' limitation.

- The 'analyzeduration' and 'probesize' options affect the accuracy of stream information.
 If it could not find some parameters for stream info, we consider increasing the values.

Change-Id: Ice2917732ce6148597a7cb6cc7186e0ac06a0b05
formats/ffmpeg/Makefile.am
formats/ffmpeg/mm_file_format_ffmpeg.c
packaging/libmm-fileinfo.spec