Missing FFmpeg include; fixes #989.
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index a0965dcfb81a917eef2e0ba46b1223d536f35cc6..f0500a6296965bec6a43816de589a49f999e0ed4 100644 (file)
@@ -421,6 +421,10 @@ FFmpegDecoder::decode_audio_packet ()
                                ct += ContentTime::from_frames (remove, (*stream)->frame_rate ());
                        }
 
+                       if (ct < ContentTime()) {
+                               LOG_WARNING ("Crazy timestamp %s", to_string (ct));
+                       }
+
                        /* Give this data provided there is some, and its time is sane */
                        if (ct >= ContentTime() && data->frames() > 0) {
                                audio->give (*stream, data, ct);