summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-20 19:40:17 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-20 20:05:26 +0100
commit145a55054ef7ad3d8d7bf1e64982cfa9b2adb62e (patch)
tree86580a4570af2c6c21b937d0515286eecac5dc5e /src/lib/ffmpeg_decoder.cc
parent572f030509c2b0c1f662a54624ab0be6efdd9024 (diff)
A bit of tidying up.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
-rw-r--r--src/lib/ffmpeg_decoder.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc
index d93b023c3..e52ea735f 100644
--- a/src/lib/ffmpeg_decoder.cc
+++ b/src/lib/ffmpeg_decoder.cc
@@ -128,11 +128,11 @@ FFmpegDecoder::setup_general ()
/* Now override audio and subtitle streams with those from the Film, if it has any */
if (_fs->audio_stream_index() != -1) {
- _audio_stream = _fs->audio_stream_decoder_id ();
+ _audio_stream = _fs->audio_stream().id();
}
if (_fs->subtitle_stream_index() != -1) {
- _subtitle_stream = _fs->subtitle_stream_decoder_id ();
+ _subtitle_stream = _fs->subtitle_stream().id ();
}
if (_video_stream < 0) {
@@ -232,7 +232,7 @@ FFmpegDecoder::do_pass ()
int const data_size = av_samples_get_buffer_size (
0, _audio_codec_context->channels, _frame->nb_samples, audio_sample_format (), 1
);
-
+
assert (_audio_codec_context->channels == _fs->audio_channels());
process_audio (_frame->data[0], data_size);
}