Browse Source

indeo3: error out if no motion vector is set.

This fixes a crash on a corrupt bitstream (bugzilla #93).

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
tags/n0.9
Aneesh Dogra Ronald S. Bultje 13 years ago
parent
commit
97980db487
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/indeo3.c

+ 2
- 0
libavcodec/indeo3.c View File

@@ -756,6 +756,8 @@ static int parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
av_log(avctx, AV_LOG_ERROR, "SkipCell procedure not implemented yet!\n"); av_log(avctx, AV_LOG_ERROR, "SkipCell procedure not implemented yet!\n");


CHECK_CELL CHECK_CELL
if(!curr_cell.mv_ptr)
return AVERROR_INVALIDDATA;
copy_cell(ctx, plane, &curr_cell); copy_cell(ctx, plane, &curr_cell);
return 0; return 0;
} }


Loading…
Cancel
Save