avformat/mux: Restore original ts in write_packet on error
authorJan Sebechlebsky <sebechlebskyjan@gmail.com>
Tue, 2 Aug 2016 13:24:19 +0000 (15:24 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 Aug 2016 10:59:54 +0000 (12:59 +0200)
commit2fc9a3eb7a8c606bd403dc9fbdb8463144b243cf
tree7e0d5b1f7125346933ec5ddc570681f6d44a1ed3
parent429b41e7b283f860ee69c81fa2be96ff2af12200
avformat/mux: Restore original ts in write_packet on error

Restore original timestamps in write_packet() if the
actual write operation was not successfull. This allows
to pass the same packet to nonblocking muxer repeatedly
without corrupting the timestamps.

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mux.c