Ticket #2536: patchrawvideoregression.diff

File patchrawvideoregression.diff, 805 bytes (added by Carl Eugen Hoyos, 13 years ago)
  • libavcodec/rawdec.c

    diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
    index f45ff4c..05ed7ff 100644
    a b static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,  
    262262        avctx->pix_fmt==AV_PIX_FMT_RGB555BE ||
    263263        avctx->pix_fmt==AV_PIX_FMT_RGB565LE ||
    264264        avctx->pix_fmt==AV_PIX_FMT_MONOWHITE ||
    265         avctx->pix_fmt==AV_PIX_FMT_PAL8) &&
    266         FFALIGN(frame->linesize[0], linesize_align) * avctx->height <= buf_size)
     265        avctx->pix_fmt==AV_PIX_FMT_PAL8)/* &&
     266        FFALIGN(frame->linesize[0], linesize_align) * avctx->height <= buf_size*/)
    267267        frame->linesize[0] = FFALIGN(frame->linesize[0], linesize_align);
    268268
    269269    if (avctx->pix_fmt == AV_PIX_FMT_NV12 && avctx->codec_tag == MKTAG('N', 'V', '1', '2') &&