[FFmpeg-devel] [PATCH] lavf/segment: fix slight refactor to seg_write_packet

Michael Niedermayer michael at niedermayer.cc
Fri Mar 31 03:10:09 EEST 2017


On Thu, Mar 30, 2017 at 04:43:12PM -0400, Jason Pontious wrote:
> I found an issue with a previous commit and I'm submitting the patch here.
> The previous commit was from March '16 https://github.com/FFmpeg/
> FFmpeg/commit/5b4f44f66ae3c42b7497929b6ef5f67e8b1ff0ad
> 
> Previous refactor commit did not produce an equivalent segment end_time in
> all cases.
> When setting end_time, the addition to start_time was completely removed.
> ---
>  libavformat/segment.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavformat/segment.c b/libavformat/segment.c
> index 8ec3653..951ca91 100644
> --- a/libavformat/segment.c
> +++ b/libavformat/segment.c
> @@ -904,7 +904,8 @@ calc_times:
>          seg->cur_entry.index = seg->segment_idx + seg->segment_idx_wrap *
> seg->segment_idx_wrap_nb;
>          seg->cur_entry.start_time = (double)pkt->pts *
> av_q2d(st->time_base);

patch is corrupted by newlines

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170331/dd750e30/attachment.sig>


More information about the ffmpeg-devel mailing list