You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-29 05:57:37 +02:00
ffserver: fix seeking with ?date=...
Regression since 5f847bf61d.
After this commit, timestamps pushed by FFmpeg won't be relative
anymore, but absolute (based on the date/time at the beginning of the
push). This will allow seeking to work properly. Before this patch, the
seek was done, but ffm timestamps were way smallers than the absolute
requested timestamp (based on a date), so the seek was done, but to the
end of the stream (which was similar to no effect at all).
This commit is contained in:
committed by
Clément Bœsch
parent
9425dc3dba
commit
f7c46d251c
@@ -1368,8 +1368,11 @@ static int read_ffserver_streams(OptionsContext *o, AVFormatContext *s, const ch
|
||||
choose_pixel_fmt(st, codec, st->codec->pix_fmt);
|
||||
}
|
||||
|
||||
/* ffserver seeking with date=... needs a date reference */
|
||||
err = parse_option(o, "metadata", "creation_time=now", options);
|
||||
|
||||
avformat_close_input(&ic);
|
||||
return 0;
|
||||
return err;
|
||||
}
|
||||
|
||||
static void init_output_filter(OutputFilter *ofilter, OptionsContext *o,
|
||||
|
||||
Reference in New Issue
Block a user