summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/raw.c6
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