Dear topicstarter. You print the pts timestamps of demuxed packets. It is correct that they are not sorted by pts. They are ordered by dts, the Decoding Timestamp. They are in the order for being decoded. You should look at pts of resulting frames (actually i use AVFrame.pkt_pts, as i see in my apps sources). Decoders return frames in _pts_ order, that is what you need.
-- Andrey Utkin _______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user