On 07/04/2016 05:07 PM, Hendrik Leppkes wrote:
On Mon, Jul 4, 2016 at 4:45 PM, <sebechlebsky...@gmail.com> wrote:
+ if (pkt->pts != AV_NOPTS_VALUE)
+ pkt2.pts = av_rescale_q(pkt->pts, tb, tb2);
+ if (pkt->dts != AV_NOPTS_VALUE)
+ pkt2.dts = av_rescale_q(pkt->dts, tb, tb2);
Maybe this entire thing could use av_packet_rescale_ts?
Sure! I wasn't aware there is such function, I'll wait if there are some
more comments to the patchset and change this.
Thank you,
Jan
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel