Commit c167e566 authored by aurel's avatar aurel

copy packet duration when doing a stream copy

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9796 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f8d1b3d1
......@@ -1237,6 +1237,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
dts= av_rescale_q(pkt->dts, ist->st->time_base, AV_TIME_BASE_Q);
opkt.dts= av_rescale_q(dts + input_files_ts_offset[ist->file_index], AV_TIME_BASE_Q, ost->st->time_base);
}
opkt.duration = av_rescale_q(pkt->duration, ist->st->time_base, ost->st->time_base);
opkt.flags= pkt->flags;
//FIXME remove the following 2 lines they shall be replaced by the bitstream filters
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment