[FFmpeg-devel] [PATCH] stream copy packet duration

Baptiste Coudurier baptiste.coudurier
Wed Jul 25 17:58:18 CEST 2007


Hi

Aurelien Jacobs wrote:
> Hi,
> 
> Attached patch allows to copy packet duration when doing a stream copy.
> This will be especially useful when stream copying subtitles.
> Ok to apply ?
> 
> [...]
>
> + opkt.duration = av_rescale_q(av_rescale_q(pkt->duration, ist->st->time_base, AV_TIME_BASE_Q), AV_TIME_BASE_Q,  ost->st->time_base);
>

Why not :

opkt.duration = av_rescale_q(pkt->duration, ist->st->time_base,
ost->st->time_base);

Any problem ?

[...]

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312




More information about the ffmpeg-devel mailing list