[SCM] libav/experimental: Simplify: remove pointless {} and else
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:52:21 UTC 2013
The following commit has been merged in the experimental branch:
commit 8cb724c5c42f4b3d4fc466201334af6e537ad202
Author: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Date: Thu Oct 1 17:26:20 2009 +0000
Simplify: remove pointless {} and else
Originally committed as revision 20129 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/raw.c b/libavformat/raw.c
index 3c118b3..4b0a31c 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
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list