[FFmpeg-cvslog] dfa: remove redundant check

Michael Niedermayer git at videolan.org
Thu Apr 4 15:53:03 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Apr  4 14:49:00 2013 +0200| [740ebe468c0567cac03ef7e6b4b9fd0253b97da2] | committer: Michael Niedermayer

dfa: remove redundant check

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=740ebe468c0567cac03ef7e6b4b9fd0253b97da2
---

 libavcodec/dfa.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/dfa.c b/libavcodec/dfa.c
index 7522a05..fcfcd30 100644
--- a/libavcodec/dfa.c
+++ b/libavcodec/dfa.c
@@ -254,8 +254,6 @@ static int decode_wdlt(GetByteContext *gb, uint8_t *frame, int width, int height
             y        += skip_lines;
             segments = bytestream2_get_le16(gb);
         }
-        if (frame_end <= frame)
-            return -1;
         if (segments & 0x8000) {
             frame[width - 1] = segments & 0xFF;
             segments = bytestream2_get_le16(gb);



More information about the ffmpeg-cvslog mailing list