Re: [FFmpeg-devel] [PATCH] libavformat/flacenc: reject too big picture blocks

2019-10-29 Thread Michael Niedermayer
On Sun, Oct 27, 2019 at 10:06:11PM +0100, Mattias Wadman wrote: > Think i messed up the formatting of the in-line patch somehow. Ill send the > patch as an attachment instead. Hope reply and attach is ok? > > On Sun, Oct 27, 2019 at 8:22 PM Mattias Wadman > wrote: > > > A too big picture will ca

Re: [FFmpeg-devel] [PATCH] libavformat/flacenc: reject too big picture blocks

2019-10-27 Thread Mattias Wadman
Think i messed up the formatting of the in-line patch somehow. Ill send the patch as an attachment instead. Hope reply and attach is ok? On Sun, Oct 27, 2019 at 8:22 PM Mattias Wadman wrote: > A too big picture will case the muxer to write a truncated block size > (uint24) > causing the output f

[FFmpeg-devel] [PATCH] libavformat/flacenc: reject too big picture blocks

2019-10-27 Thread Mattias Wadman
A too big picture will case the muxer to write a truncated block size (uint24) causing the output file to be corrupt. How to reproduce: Write a file with truncated block size: ffmpeg -y -f lavfi -i sine -f lavfi -i color=red:size=2400x2400 -map 0:a:0 -map 1:v:0 -c:v:0 bmp -disposition:1 attached_