Frankly, I thought that all alternatives should be considered _after_ av_frame_get_best_effort_timestamp returned AV_NOPTS_VALUE. At least the name suggests so. Both Stephen and ffmplay versions checks for some prior knowledge before even trying this function. Imho, If all heuristics is inside av_frame_get_best_effort_timestamp and better and better from version to version, this will be "best bet" for everyone. If single frame is not enough then this function might require the last packet or something like this, but moving all the complexity inside it will remove large part of confusion
On Mon, Feb 23, 2015 at 12:37 PM, wm4 <nfx...@googlemail.com> wrote: > This is still non-sense: > > if(packet->dts != AV_NOPTS_VALUE) { > pts = av_frame_get_best_effort_timestamp(pFrame); > } else { > pts = 0; > } > > Why that stuff about dts??? This should completely fail with threaded > decoding at least. >
_______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user