Revision b0efaee6 libavcodec/libxvidff.c

View differences:

libavcodec/libxvidff.c
456 456
                                          XVID_TYPE_AUTO;
457 457

  
458 458
    /* Pixel aspect ratio setting */
459
    if (avctx->sample_aspect_ratio.num < 1 || avctx->sample_aspect_ratio.num > 255 ||
460
        avctx->sample_aspect_ratio.den < 1 || avctx->sample_aspect_ratio.den > 255) {
459
    if (avctx->sample_aspect_ratio.num < 0 || avctx->sample_aspect_ratio.num > 255 ||
460
        avctx->sample_aspect_ratio.den < 0 || avctx->sample_aspect_ratio.den > 255) {
461 461
        av_log(avctx, AV_LOG_ERROR, "Invalid pixel aspect ratio %i/%i\n",
462 462
               avctx->sample_aspect_ratio.num, avctx->sample_aspect_ratio.den);
463 463
        return -1;

Also available in: Unified diff