[FFmpeg-user] ffmpeg -i mvc-stream2.m2ts = huge memory usage since vcodec/h2645_parse: Clear buffer padding

Andy Furniss adf.lists at gmail.com
Mon Jan 2 15:58:22 EET 2017


Notice by accident and may be one off unlucky sample.

Out of curiosity I did ffmpeg -i .... on the second m2ts stream of a
mvc ISO sample.

This ate all mem (8G) and swap (4G) before oom killer killed ffmpeg.

This was git and as it didn't happen with my older installed ffmpeg
I bisected to -

commit 382a68b0088b06b8df20d0133d767d53d8f161ef
Author: Michael Niedermayer <michael at niedermayer.cc>
Date:   Thu Aug 18 22:23:32 2016 +0200

     vcodec/h2645_parse: Clear buffer padding

     Fixes use of uninitialized memory
     Fixes: 
044100cb22845944988a4bd821ff8074/asan_heap-oob_329927a_1366_c3de34ce9217dac820fbb46171031bbb.jsv

     Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
     Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

This is a cut down version (29M) that still eats plenty of mem but
not as extreme as the full version (which was only 120M).

https://drive.google.com/file/d/0BxP5-S1t9VEEaDU3emoyU0Z4ZG8/view?usp=sharing





More information about the ffmpeg-user mailing list