What is reordered_opaque for? I presume it helps with reordered
packets, and I see anecdotal evidence that if I want to override
get_buffer, I should set the frame's reordered_opaque to the current
codec pts, but I'm not sure if it's essential.
Currently, in my video decode tasks, I get the pts of the first video
packet, and use that as the pts of the video frame I obtain (I stay in
the decode job until I get a complete video frame). Is that no longer
a valid approach?
I just started to use the ffmpeg-mt branch, if that matters, and I did
add:
#ifdef AVCODEC_HAS_REORDERED_OPAQUE
// take over pts for this frame to have it reordered
pic->reordered_opaque = c->reordered_opaque;
#endif
To my buffer callback.
Regards,
Bruce Wheaton
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user