summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-09-30 10:51:31 +0100
committerCarl Hetherington <cth@carlh.net>2016-09-30 10:51:31 +0100
commit992a640cb1ceff2a57867f3167fec71ee67bf8a4 (patch)
tree3dab081db3d279306e19b3b2b2713f4dfe465820 /src/lib/ffmpeg_decoder.cc
parentcc9bfc4b9974b81e7a653e84c8a894bbaae726ec (diff)
Allow loading of multiple films from the batch converter command line.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
-rw-r--r--src/lib/ffmpeg_decoder.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc
index a0965dcfb..f0500a629 100644
--- a/src/lib/ffmpeg_decoder.cc
+++ b/src/lib/ffmpeg_decoder.cc
@@ -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);