Mercurial > libavformat.hg
comparison utils.c @ 2522:6d0c22418d0a libavformat
Correct initial timestamp
Patch by Wolfram Gloger: [wmglo $ dent med uni-muenchen de]
Original thread:
[FFmpeg-devel] [PATCH] av_estimate_timings_from_pts corrupt timestamps
date: 08/25/2007 09:51 PM
author | benoit |
---|---|
date | Wed, 05 Sep 2007 14:11:33 +0000 |
parents | b08793768c30 |
children | db7d46749b55 |
comparison
equal
deleted
inserted
replaced
2521:776b5c2a1bf1 | 2522:6d0c22418d0a |
---|---|
1562 | 1562 |
1563 url_fseek(&ic->pb, old_offset, SEEK_SET); | 1563 url_fseek(&ic->pb, old_offset, SEEK_SET); |
1564 for(i=0; i<ic->nb_streams; i++){ | 1564 for(i=0; i<ic->nb_streams; i++){ |
1565 st= ic->streams[i]; | 1565 st= ic->streams[i]; |
1566 st->cur_dts= st->first_dts; | 1566 st->cur_dts= st->first_dts; |
1567 st->last_IP_pts = AV_NOPTS_VALUE; | |
1567 } | 1568 } |
1568 } | 1569 } |
1569 | 1570 |
1570 static void av_estimate_timings(AVFormatContext *ic, offset_t old_offset) | 1571 static void av_estimate_timings(AVFormatContext *ic, offset_t old_offset) |
1571 { | 1572 { |