[FFmpeg-cvslog] r20129 - trunk/libavformat/raw.c

reimar subversion
Thu Oct 1 19:26:21 CEST 2009


Author: reimar
Date: Thu Oct  1 19:26:20 2009
New Revision: 20129

Log:
Simplify: remove pointless {} and else

Modified:
   trunk/libavformat/raw.c

Modified: trunk/libavformat/raw.c
==============================================================================
--- trunk/libavformat/raw.c	Thu Oct  1 19:22:01 2009	(r20128)
+++ trunk/libavformat/raw.c	Thu Oct  1 19:26:20 2009	(r20129)
@@ -171,11 +171,9 @@ static int rawvideo_read_packet(AVFormat
     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
 



More information about the ffmpeg-cvslog mailing list