I meanwhile use the following:
        uint64 pts = frame->pkt_pts;
        if(pts == AV_NOPTS_VALUE)
        {
          pts = frame->pts;
          if(pts == AV_NOPTS_VALUE)
          {
            pts = frame->pkt_dts;
          }
        }

That works in my example cases.



--
View this message in context: 
http://libav-users.943685.n4.nabble.com/Libav-user-pts-problem-tp4657275p4657288.html
Sent from the libav-users mailing list archive at Nabble.com.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to