[FFmpeg-devel] [PATCH] avformat/bit: return early from write_packet if pkt->size is 0

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Thu Feb 26 20:41:48 CET 2015


the bit format muxer currently segfaults, when it is passed a packet of size 0.
This can be triggered e.g. with:
ffmpeg -y -f lavfi -i sine=duration=0.1 -c:a flac -f bit /dev/null

Attached patch fixes this.

Best regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-bit-return-early-from-write_packet-if-pkt-s.patch
Type: text/x-diff
Size: 797 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150226/8ecf80d7/attachment.bin>

More information about the ffmpeg-devel mailing list