Commit 9b6fac11 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/xmv: factor return check out of if/else

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 973c3dba
...@@ -549,16 +549,14 @@ static int xmv_read_packet(AVFormatContext *s, ...@@ -549,16 +549,14 @@ static int xmv_read_packet(AVFormatContext *s,
/* Fetch a video frame */ /* Fetch a video frame */
result = xmv_fetch_video_packet(s, pkt); result = xmv_fetch_video_packet(s, pkt);
if (result)
return result;
} else { } else {
/* Fetch an audio frame */ /* Fetch an audio frame */
result = xmv_fetch_audio_packet(s, pkt, xmv->current_stream - 1); result = xmv_fetch_audio_packet(s, pkt, xmv->current_stream - 1);
if (result)
return result;
} }
if (result)
return result;
/* Increase our counters */ /* Increase our counters */
if (++xmv->current_stream >= xmv->stream_count) { if (++xmv->current_stream >= xmv->stream_count) {
......
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