]> git.sesse.net Git - ffmpeg/commit
lavf/prompeg: prompeg_write() must report data all was written
authorDavid Holroyd <david.holroyd@m2amedia.tv>
Tue, 9 Jun 2020 13:37:10 +0000 (21:37 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Sun, 14 Jun 2020 04:27:49 +0000 (12:27 +0800)
commitffc1208266c2890a1b0e2391e0a536fe9698e69c
tree4872056157bb58df5e87da694ad190f372baf63b
parent0a0158e45d467593d08d4cfd16cdc1be242090f5
lavf/prompeg: prompeg_write() must report data all was written

Previously, prompeg_write() would only report to caller that bytes we
written when a FEC packet was actually created.  Not all RTP packets are
expected to generate a FEC packet however, so this behavior was causing
avio to retry writing the RTP packet, eventually forcing the FEC state
machine to send a FEC packet erroneously (and so breaking out of the
retry loop).

This was resulting in incorrect FEC data being generated, and far too
many FEC packets to be sent (~100% FEC overhead).

fix #7863

Signed-off-by: David Holroyd <david.holroyd@m2amedia.tv>
libavformat/prompeg.c