decoder/ffmpeg: suppress warning about unused variable

Only relevant for old ffmpeg versions.
This commit is contained in:
Max Kellermann 2013-04-08 22:12:49 +02:00
parent 2c4b998170
commit 3477acee48
1 changed files with 2 additions and 0 deletions

View File

@ -308,6 +308,8 @@ ffmpeg_send_packet(struct decoder *decoder, struct input_stream *is,
} else if (len >= 0)
len = -1;
#else
(void)frame;
int len = avcodec_decode_audio3(codec_context,
aligned_buffer, &audio_size,
&packet2);