Browse Source

avcodec/brender_pix: stop calling av_image_check_size() twice

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.2-rc1
Paul B Mahol 11 years ago
parent
commit
290be34a74
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      libavcodec/brender_pix.c

+ 0
- 3
libavcodec/brender_pix.c View File

@@ -128,9 +128,6 @@ static int brpix_decode_frame(AVCodecContext *avctx,
return AVERROR_PATCHWELCOME;
}

if (av_image_check_size(hdr.width, hdr.height, 0, avctx) < 0)
return AVERROR_INVALIDDATA;

if ((ret = ff_set_dimensions(avctx, hdr.width, hdr.height)) < 0)
return ret;



Loading…
Cancel
Save