From 2f118654ec80f099e3bc0add3d2dd2f11c9ad044 Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 1 Oct 2009 17:26:20 +0000 Subject: [PATCH] Simplify: remove pointless {} and else git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20129 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavformat/raw.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavformat/raw.c b/libavformat/raw.c index 3c118b36c2..4b0a31caf0 100644 --- a/libavformat/raw.c +++ b/libavformat/raw.c @@ -171,11 +171,9 @@ static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt) pkt->dts= pkt->pos / packet_size; pkt->stream_index = 0; - if (ret != packet_size) { + if (ret != packet_size) return AVERROR(EIO); - } else { - return 0; - } + return 0; } #endif -- 2.11.4.GIT