mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-02 18:07:47 +00:00
lavf: Add system to seperate relative timestamps from absolute ones.
With this we can always know if a timestamp is based on added durations from an unknown origin or if it is based on a correct timestamp (and possibly added durations) This should fix some bugs where this distinction was mixed up. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d07de6d75d
commit
ad53c7f9ec
4 changed files with 42 additions and 19 deletions
1
ffmpeg.c
1
ffmpeg.c
|
@ -4258,6 +4258,7 @@ static int read_ffserver_streams(OptionsContext *o, AVFormatContext *s, const ch
|
|||
|
||||
// FIXME: a more elegant solution is needed
|
||||
memcpy(st, ic->streams[i], sizeof(AVStream));
|
||||
st->cur_dts = 0;
|
||||
st->info = av_malloc(sizeof(*st->info));
|
||||
memcpy(st->info, ic->streams[i]->info, sizeof(*st->info));
|
||||
st->codec= avctx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue