You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-29 05:57:37 +02:00
swresample/swresample: Avoid av_unused
Possible now that -Wdeclaration-after-statement is no longer used. Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -720,14 +720,13 @@ int attribute_align_arg swr_convert(struct SwrContext *s,
|
|||||||
{
|
{
|
||||||
AudioData * in= &s->in;
|
AudioData * in= &s->in;
|
||||||
AudioData *out= &s->out;
|
AudioData *out= &s->out;
|
||||||
av_unused int max_output;
|
|
||||||
|
|
||||||
if (!swr_is_initialized(s)) {
|
if (!swr_is_initialized(s)) {
|
||||||
av_log(s, AV_LOG_ERROR, "Context has not been initialized\n");
|
av_log(s, AV_LOG_ERROR, "Context has not been initialized\n");
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
#if defined(ASSERT_LEVEL) && ASSERT_LEVEL >1
|
#if defined(ASSERT_LEVEL) && ASSERT_LEVEL >1
|
||||||
max_output = swr_get_out_samples(s, in_count);
|
int max_output = swr_get_out_samples(s, in_count);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while(s->drop_output > 0){
|
while(s->drop_output > 0){
|
||||||
|
|||||||
Reference in New Issue
Block a user