Commit f87a2e12 authored by Stephen Hutchinson's avatar Stephen Hutchinson Committed by Michael Niedermayer

avisynth: Factor out a couple of returns

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ac9529ce
......@@ -617,15 +617,15 @@ static int avisynth_read_packet(AVFormatContext *s, AVPacket *pkt)
avisynth_next_stream(s, &st, pkt, &discard);
return avisynth_read_packet_audio(s, pkt, discard);
}
return ret;
} else {
ret = avisynth_read_packet_audio(s, pkt, discard);
if (ret == AVERROR_EOF && avs_has_video(avs->vi)) {
avisynth_next_stream(s, &st, pkt, &discard);
return avisynth_read_packet_video(s, pkt, discard);
}
return ret;
}
return ret;
}
static av_cold int avisynth_read_close(AVFormatContext *s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment