comparison v210dec.c @ 10397:d7ed9dcc78e3 libavcodec

Remove unnecessary calls to avcodec_check_dimensions, the check is already done at a higher level.
author reimar
date Tue, 13 Oct 2009 20:13:28 +0000
parents 2bb3882075b6
children 8a4984c5cacc
comparison
equal deleted inserted replaced
10396:2bb3882075b6 10397:d7ed9dcc78e3
28 { 28 {
29 if (avctx->width & 1) { 29 if (avctx->width & 1) {
30 av_log(avctx, AV_LOG_ERROR, "v210 needs even width\n"); 30 av_log(avctx, AV_LOG_ERROR, "v210 needs even width\n");
31 return -1; 31 return -1;
32 } 32 }
33 if (avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0)
34 return -1;
35 avctx->pix_fmt = PIX_FMT_YUV422P16; 33 avctx->pix_fmt = PIX_FMT_YUV422P16;
36 avctx->bits_per_raw_sample = 10; 34 avctx->bits_per_raw_sample = 10;
37 35
38 avctx->coded_frame = avcodec_alloc_frame(); 36 avctx->coded_frame = avcodec_alloc_frame();
39 37