Browse Source

nuv: dont try to copy an empty frame

Fixes assertion failure

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
56d09250ef
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/nuv.c

+ 2
- 1
libavcodec/nuv.c View File

@@ -262,7 +262,8 @@ retry:
av_log(avctx, AV_LOG_ERROR, "uncompressed frame too short\n");
height = buf_size / c->width / 3 * 2;
}
copy_frame(&c->pic, buf, c->width, height);
if(height > 0)
copy_frame(&c->pic, buf, c->width, height);
break;
}
case NUV_RTJPEG_IN_LZO:


Loading…
Cancel
Save