Browse Source

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

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 9b6fac11da)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8.2
Michael Niedermayer 10 years ago
parent
commit
2817eb514c
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      libavformat/xmv.c

+ 3
- 5
libavformat/xmv.c View File

@@ -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) {


Loading…
Cancel
Save