mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-25 01:32:48 +08:00
Correct opts calulation in ffmpeg.c.
This correct the stop point for demuxing with -vcodec copy and -t as well as packet interleaving. (we already diddrop packets but kept demuxing them for too long due to opts being wrong) the change to ffm is due to 2 packets with timestamp 0 being stored in different order. Originally committed as revision 21626 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
3
ffmpeg.c
3
ffmpeg.c
@ -2236,9 +2236,6 @@ static int av_encode(AVFormatContext **output_files,
|
||||
ist = ist_table[ost->source_index];
|
||||
if(no_packet[ist->file_index])
|
||||
continue;
|
||||
if(ost->st->codec->codec_type == CODEC_TYPE_VIDEO)
|
||||
opts = ost->sync_opts * av_q2d(ost->st->codec->time_base);
|
||||
else
|
||||
opts = ost->st->pts.val * av_q2d(ost->st->time_base);
|
||||
ipts = (double)ist->pts;
|
||||
if (!file_table[ist->file_index].eof_reached){
|
||||
|
Reference in New Issue
Block a user