summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-19 00:26:27 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-19 00:26:27 +0000
commit54c0378137091de604b8c0d6d98959b55b0cddb6 (patch)
treebc591c0e59c5cc2ba1054c1fcc612bf73e8d6eaf /src/lib/ffmpeg_decoder.cc
parent5282bd42dbe7f9c114abc6f648cb65ef52c35cf4 (diff)
Fix audio analysis; make sure we don't decode video and let it pile up unwanted.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
-rw-r--r--src/lib/ffmpeg_decoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc
index ec4e33a6e..7c846349f 100644
--- a/src/lib/ffmpeg_decoder.cc
+++ b/src/lib/ffmpeg_decoder.cc
@@ -154,7 +154,7 @@ FFmpegDecoder::pass ()
int const si = _packet.stream_index;
- if (si == _video_stream) {
+ if (si == _video_stream && !_ignore_video) {
decode_video_packet ();
} else if (_ffmpeg_content->audio_stream() && _ffmpeg_content->audio_stream()->uses_index (_format_context, si)) {
decode_audio_packet ();