Am 17.08.2011 18:34 schrieb "Vladimir Pantelic" <vlado...@gmail.com>:
> > /* I/P frames have a pts that is after the previous I or P frame, > so the difference is positive module 13bit */ Modulo of course >>>> > + s->pts = pc->key_dts + ((pts - pc->key_pts)& 0x1FFF); >>>> > + else > > > /* B frames have a pts that is before the previous I or P frame, > so the difference is negative module 13bit */ > > >>>> > + s->pts = pc->key_dts - ((pc->key_pts - pts)& 0x1FFF); >>>> > + } >>>> >>>> I suppose this could use some doxy. What happens if we have a matroska >>>> file with RV40 video? Does it need the PTS correction? Is the parser >>>> invoked? >>> >>> >>> It's not invoked unless demuxer says so by setting stream->need_parsing. >> >> >> Some comments would still be nice so I understand the above code >> without crackpot smoking. > > > see above >
_______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel