summaryrefslogtreecommitdiff
path: root/libavcodec/4xm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-01-23 18:09:06 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-01-23 18:09:06 +0000
commit934982c4ace1a3d5d627b518782ed092a456c49e (patch)
tree2710f7ff4b0238136300d02da7baf234ed48cc01 /libavcodec/4xm.c
parent884182b383ed8b70a67634dc7f91395c402b58d7 (diff)
avoid buf_size == 0 checks in every decoder
Originally committed as revision 3872 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/4xm.c')
-rw-r--r--libavcodec/4xm.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 5cc5f575f0..6932d52ab8 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -605,11 +605,6 @@ static int decode_frame(AVCodecContext *avctx,
AVFrame *p, temp;
int i, frame_4cc, frame_size;
- /* special case for last picture */
- if (buf_size == 0) {
- return 0;
- }
-
frame_4cc= get32(buf);
if(buf_size != get32(buf+4)+8){
av_log(f->avctx, AV_LOG_ERROR, "size missmatch %d %d\n", buf_size, get32(buf+4));