summaryrefslogtreecommitdiff
path: root/libavformat/xmv.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-06 02:11:01 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-06 02:11:01 +0100
commit9b6fac11da470274d4b93d46ef66527aa1824179 (patch)
tree079d4871929ff93ab661007d2756744f12348b88 /libavformat/xmv.c
parent973c3dba27d0b1a88c70f6661b6a90d2f2e50665 (diff)
avformat/xmv: factor return check out of if/else
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/xmv.c')
-rw-r--r--libavformat/xmv.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libavformat/xmv.c b/libavformat/xmv.c
index 45c24642cc..06c070ca43 100644
--- a/libavformat/xmv.c
+++ b/libavformat/xmv.c
@@ -549,16 +549,14 @@ static int xmv_read_packet(AVFormatContext *s,
/* Fetch a video frame */
result = xmv_fetch_video_packet(s, pkt);
- if (result)
- return result;
-
} else {
/* Fetch an audio frame */
result = xmv_fetch_audio_packet(s, pkt, xmv->current_stream - 1);
- if (result)
- return result;
}
+ if (result)
+ return result;
+
/* Increase our counters */
if (++xmv->current_stream >= xmv->stream_count) {