lavf/flvenc: fail in case the muxed packet is too big
authorStefano Sabatini <stefasab@gmail.com>
Sun, 2 Nov 2014 23:28:06 +0000 (00:28 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Mon, 3 Nov 2014 08:31:48 +0000 (09:31 +0100)
commitf0158e6f0cc1bd6bf5d0485a325bdc654fcd3328
treee1800b4206c9e82bc0f9d7d78b2bcb837d814fa5
parent4f4de7f49e0d0c37df8fd2f59f59819cdc935da7
lavf/flvenc: fail in case the muxed packet is too big

Avoid the creation of files which cannot be successfully decoded by
ffmpeg, for example generated with:
ffmpeg -f lavfi -i sine -af "aselect='not(between(t,100,500))',aresample=min_comp=0.001:min_hard_comp=0.100000" -acodec pcm_s16le -t 1000 -y out_audio.flv
libavformat/flvenc.c