diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-01 17:26:20 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-01 17:26:20 +0000 |
commit | 8cb724c5c42f4b3d4fc466201334af6e537ad202 (patch) | |
tree | 342abf85880bb362947ec0862c15a387cbd2d778 /libavformat/raw.c | |
parent | d4c1803e0e5258b2157be9fae8bf1fd2c295f56c (diff) | |
download | ffmpeg-8cb724c5c42f4b3d4fc466201334af6e537ad202.tar.gz |
Simplify: remove pointless {} and else
Originally committed as revision 20129 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/raw.c')
-rw-r--r-- | libavformat/raw.c | 6 |
1 files 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 |