Fix up parent / child member naming confusion.
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index 5b96d899ae1a42b96361d141841839e5e3ea8d92..a9db6f4893bae07c19daa54b8267f1df3836420c 100644 (file)
@@ -285,7 +285,7 @@ FFmpegDecoder::do_pass ()
                if (avcodec_decode_video2 (_video_codec_context, _video_frame[_this_video_frame], &frame_finished, &_packet) >= 0 && frame_finished) {
 
                        /* Where we are in the output, in seconds */
-                       double const out_pts_seconds = video_frame() / frames_per_second();
+                       double const out_pts_seconds = video_frame_index() / frames_per_second();
 
                        /* Difference between where we are and where we should be */
                        double const delta = pts_seconds - out_pts_seconds;