We are using libavcodec to decode various types of video streams. To date, we have not found a way to get the PTS set in the decoded frame. What we do now is maintain a "queue" of PTS values, and sort these, then assign the lowest PTS to the next frame that comes out of the decoder because the decoder seems to consistently deliver frames in display order. While this mostly works, its a terrible hack and I think we're doing something wrong. Is there a some setting we need to enable in our context in order to have libavcodec attach the correct PTS to our decoded frames?
Best, --DaKaZ _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
