[FFmpeg-devel] [PATCH, V2] avformat/concat: Fix wrong wrapped timestamp

2017-12-14 Thread mymoeyard
From: Wu Zhiqiang When using concat protocol, start from middle of file will generate non-zero wrap reference. If seek to time before the wrap reference, wrap control will generate wrong wrapped timestamp. Copy wrap related stream properties when reading header can fix

[FFmpeg-devel] [PATCH] avformat/concat: Fix wrong wrapped timestamp

2017-12-14 Thread mymoeyard
From: wu zhiqiang When using concat protocal, start from middle of file will generate non-zero wrap reference. If seek to time less than the wrap reference, wrap control will be triggered and generate wrong wrapped timestamp. Copy wrap related stream properties when

[FFmpeg-devel] [PATCH, V3] avformat/concat: Fix wrong wrapped timestamp

2017-12-29 Thread mymoeyard
From: Wu Zhiqiang When using concat protocol, start from middle of file will generate non-zero wrap reference. If seek to time before the wrap reference, wrap control will generate wrong wrapped timestamp. Copy wrap related stream properties when reading header can fix

[FFmpeg-devel] [PATCH] avformat/hls: fix seek accuracy problem

2018-01-02 Thread mymoeyard
From: Wu Zhiqiang HLS demuxer seeking use dts instead of pts. Demuxer skip some frame when dts is before pts in special case. And it is impossible to re-seek back to start time after playing. --- libavformat/hls.c | 18 ++ 1 file changed, 14 insertions(+), 4

[FFmpeg-devel] [PATCH v2, 2/2] avformat/hls: fix start time seek error

2018-01-02 Thread mymoeyard
From: Wu Zhiqiang Calculate first_timestamp based on first packet timestamp. Some m3u8 have streams that second one has smaller timestamp in first packet of this stream. Start/seek from start time may fail due to EIO error. It should be based on start_time of

[FFmpeg-devel] [PATCH v2, 1/2] avformat/hls: fix seek accuracy problem

2018-01-02 Thread mymoeyard
From: Wu Zhiqiang HLS demuxer seeking use dts instead of pts. Demuxer skip some frame when dts is before pts in special case. And it is impossible to re-seek back to start time after playing. --- libavformat/hls.c | 18 ++ 1 file changed, 14 insertions(+), 4