Key frame detection should be done on video_pkt, not picture.