[FFmpeg-devel] [PATCH 11/11] avisynth: Factor out a couple of returns
Stephen Hutchinson
qyot27 at gmail.com
Mon Oct 28 21:52:53 CET 2013
---
libavformat/avisynth.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index f9ff3dc..6838bf5 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)
--
1.8.3.2
More information about the ffmpeg-devel
mailing list