mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-02 13:24:20 +08:00
do not randomize unknown timestamps
Originally committed as revision 3568 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
5
ffmpeg.c
5
ffmpeg.c
@@ -1249,7 +1249,10 @@ static int output_packet(AVInputStream *ist, int ist_index,
|
||||
opkt.stream_index= ost->index;
|
||||
opkt.data= data_buf;
|
||||
opkt.size= data_size;
|
||||
opkt.pts= pkt->pts + input_files_ts_offset[ist->file_index];
|
||||
if(pkt->pts != AV_NOPTS_VALUE)
|
||||
opkt.pts= pkt->pts + input_files_ts_offset[ist->file_index];
|
||||
else
|
||||
opkt.pts= AV_NOPTS_VALUE;
|
||||
opkt.dts= pkt->dts + input_files_ts_offset[ist->file_index];
|
||||
opkt.flags= pkt->flags;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user