aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hutchinson <qyot27@gmail.com>2013-10-28 16:52:53 -0400
committerMichael Niedermayer <michaelni@gmx.at>2013-10-28 22:30:43 +0100
commitf87a2e1272b61edaf903d60a4c4bcede36e3d508 (patch)
treec24531f2693f52346fb46ed8f71820dc7d9177aa
parentac9529ceec195a0fa0acda077a9ec1d53ed0c936 (diff)
downloadffmpeg-f87a2e1272b61edaf903d60a4c4bcede36e3d508.tar.gz
avisynth: Factor out a couple of returns
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/avisynth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index f9ff3dcb27..6838bf5f92 100644
--- a/libavformat/avisynth.c
+++ b/libavformat/avisynth.c
@@ -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)