~ubuntu-branches/ubuntu/raring/libav/raring-security

« back to all changes in this revision

Viewing changes to libavcodec/indeo3.c

  • Committer: Package Import Robot
  • Author(s): Jamie Strandboge
  • Date: 2012-11-16 12:39:50 UTC
  • mfrom: (26.1.1 quantal-security)
  • Revision ID: package-import@ubuntu.com-20121116123950-p11m12vkg2n8zc98
Tags: 6:0.8.4-0ubuntu1
No change rebuild for raring

Show diffs side-by-side

added added

removed removed

Lines of Context:
416
416
    blk_row_offset = (row_offset << (2 + v_zoom)) - (cell->width << 2);
417
417
    line_offset    = v_zoom ? row_offset : 0;
418
418
 
 
419
    if (cell->height & v_zoom || cell->width & h_zoom)
 
420
        return IV3_BAD_DATA;
 
421
 
419
422
    for (y = 0; y < cell->height; is_first_row = 0, y += 1 + v_zoom) {
420
423
        for (x = 0; x < cell->width; x += 1 + h_zoom) {
421
424
            ref = ref_block;
895
898
 
896
899
        av_dlog(avctx, "Frame dimensions changed!\n");
897
900
 
 
901
        if (width  < 16 || width  > 640 ||
 
902
            height < 16 || height > 480 ||
 
903
            width  &  3 || height &   3) {
 
904
            av_log(avctx, AV_LOG_ERROR,
 
905
                   "Invalid picture dimensions: %d x %d!\n", width, height);
 
906
            return AVERROR_INVALIDDATA;
 
907
        }
 
908
 
898
909
        ctx->width  = width;
899
910
        ctx->height = height;
900
911