[FFmpeg-devel] [PATCH]Fix bug in setting the pts when decoding or transcoding Dirac video wrapped in MPEG-TS using libschroedingerdec.c

Anuradha Suraparaju asuraparaju
Tue Nov 16 03:18:07 CET 2010


On Mon, Nov 15, 2010 at 7:28 PM, Joakim Plate <elupus at ecce.se> wrote:

> Anuradha Suraparaju <asuraparaju <at> gmail.com> writes:
>
> > +
> > +            if (avccontext->reordered_opaque != AV_NOPTS_VALUE) {
> > +                FfmpegSchroPktTS *pktts =
>
> reordered_opaque is as it says opaque, you shouldn't check it
> for av_nopts_value. we (xbmc) put a double in it for example.
>
>
Hmmmm... In function output_packet  in ffmpeg.c, reordered_opaque is set to
pkt_pts which is initialised to  AV_NOPTS_VALUE if the the pkt does not have
a pts. So I assumed that if a packet does not have a pts (e.g a packet in
AVI has only dts and no pts), the reordered_opaque is set to AV_NOPTS_VALUE.

Regards,
Anuradha

> /Joakim
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>



More information about the ffmpeg-devel mailing list