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

2019-10-30 Thread Mattias Wadman
Sorry i failed to get gmail to play nice with patches :( sent a new message using git send-email, hope that works. On Wed, Oct 30, 2019 at 12:51 PM Michael Niedermayer wrote: > > On Tue, Oct 29, 2019 at 02:42:47PM +0100, Mattias Wadman wrote: > > A too big picture will case the muxer to write a t

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

2019-10-30 Thread Michael Niedermayer
On Tue, Oct 29, 2019 at 02:42:47PM +0100, Mattias Wadman wrote: > 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 colo

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

2019-10-29 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_