[Libav-user] Packet containing different content than expected when using DV container
Nicolas George
george at nsup.org
Wed Oct 22 17:57:36 CEST 2014
Le primidi 1er brumaire, an CCXXIII, Info || Non-Lethal Applications a écrit :
> That's the problem. The AVFrame's PTS is not set (well, it is set to 0x800000000000).
Do not use AVFrame.pts on a decoded frame, it is not what people think it
is.
> The only thing I have left is the pkt_pts and pkt_dts which are both wrong.
pkt_pts should be what you are looking for if the container is correct;
pkt_dts may be a second choice. There is
av_frame_get_best_effort_timestamp() to try both with some consistency
heuristics.
If pkt_pts and pkt_dts are wrong in your case, that probably indicates a bug
somewhere else in the application.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20141022/5687a677/attachment.asc>
More information about the Libav-user
mailing list