diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-12 09:40:31 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-12 09:40:31 +0100 |
| commit | 977c874929e28792af0d8709c32dd0695f6c7f5e (patch) | |
| tree | c3f58eaaa68299e7d9a7835d3be84dc72b894517 /src/lib/ffmpeg_decoder.cc | |
| parent | 7319d827885d9169afc1e9169501ce657065c437 (diff) | |
Small optimisation.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index b7516f6d2..416ac0248 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -162,10 +162,10 @@ FFmpegDecoder::pass (PassReason reason) if (si == _video_stream && !_ignore_video && reason != PASS_REASON_SUBTITLE) { decode_video_packet (); - } else if (reason != PASS_REASON_SUBTITLE) { - decode_audio_packet (); } else if (fc->subtitle_stream() && fc->subtitle_stream()->uses_index (_format_context, si)) { decode_subtitle_packet (); + } else if (reason != PASS_REASON_SUBTITLE) { + decode_audio_packet (); } av_free_packet (&_packet); |
