diff options
author | Max Kellermann <max@duempel.org> | 2014-12-11 10:58:33 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-11 10:58:33 +0100 |
commit | aea99a1222079fce1d6bcfddb132c9dbd1abe874 (patch) | |
tree | 97274cfe21c145cda6b476fc1d8fd2915eccce26 /src/decoder | |
parent | 7c8038e2da61e02d8256311e65c27e9b9236e891 (diff) | |
download | mpd-aea99a1222079fce1d6bcfddb132c9dbd1abe874.tar.gz mpd-aea99a1222079fce1d6bcfddb132c9dbd1abe874.tar.xz mpd-aea99a1222079fce1d6bcfddb132c9dbd1abe874.zip |
decoder/ffpmeg: make variables more local
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/plugins/FfmpegDecoderPlugin.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/decoder/plugins/FfmpegDecoderPlugin.cxx b/src/decoder/plugins/FfmpegDecoderPlugin.cxx index aba1810d5..7e164e5bd 100644 --- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx +++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx @@ -323,11 +323,8 @@ ffmpeg_send_packet(Decoder &decoder, InputStream &is, AVPacket packet2 = *packet; - uint8_t *output_buffer; - DecoderCommand cmd = DecoderCommand::NONE; while (packet2.size > 0 && cmd == DecoderCommand::NONE) { - int audio_size = 0; int got_frame = 0; int len = avcodec_decode_audio4(codec_context, frame, &got_frame, @@ -339,6 +336,8 @@ ffmpeg_send_packet(Decoder &decoder, InputStream &is, break; } + uint8_t *output_buffer; + int audio_size = 0; if (got_frame) { audio_size = copy_interleave_frame(codec_context, frame, |