Re: [FFmpeg-devel] [PATCH 07/10] avformat/mux: Remove pointless timestamp backups

2020-03-31 Thread Marton Balint
On Tue, 31 Mar 2020, Andreas Rheinhardt wrote: write_packet() currently saves the original timestamps of the packet it got and restores them in case writing fails. This is unnecessary as none of write_packet()'s callers make any use of these timestamps at all. So remove this and add a general

[FFmpeg-devel] [PATCH 07/10] avformat/mux: Remove pointless timestamp backups

2020-03-31 Thread Andreas Rheinhardt
write_packet() currently saves the original timestamps of the packet it got and restores them in case writing fails. This is unnecessary as none of write_packet()'s callers make any use of these timestamps at all. So remove this and add a general comment to the function that timestamps may be modif