ffmpeg: move decoded_frame->pts computation together