[FFmpeg-devel] [PATCH 1/8] ffserver.c: Fix timestamp handling, still creates new clusters for mp4 files, but result is playable

Michael Niedermayer michael at niedermayer.cc
Tue May 29 00:54:26 EEST 2018


On Mon, May 28, 2018 at 08:18:52PM +0200, Stephan Holljes wrote:
> Signed-off-by: Stephan Holljes <klaxa1337 at googlemail.com>
> ---
>  ffserver.c | 14 +++++++++++---
>  1 file changed, 11 insertions(+), 3 deletions(-)
> 
> diff --git a/ffserver.c b/ffserver.c
> index 39e1c32..fc2a1a4 100644
> --- a/ffserver.c
> +++ b/ffserver.c
> @@ -133,7 +133,7 @@ void *read_thread(void *arg)
>          pkt.pos = -1;
>          
>          // current pts
> -        pts = pkt.pts; //av_rescale_q(pkt.pts, in_stream->time_base, tb);
> +        pts = pkt.pts;
>          
>          // current stream "uptime"
>          now = av_gettime_relative() - start;
> @@ -200,6 +200,9 @@ void write_segment(struct Client *c)
>      struct Segment *seg;
>      int ret;
>      int pkt_count = 0;

> +    AVRational tb;
> +    tb.num = 1;
> +    tb.den = AV_TIME_BASE;

AVRational tb = {1, AV_TIME_BASE}


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180528/69c42e12/attachment.sig>


More information about the ffmpeg-devel mailing list