[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

     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).


More information about the ffmpeg-user mailing list