comparison v210x.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 fbeb4ea31f87
comparison
equal deleted inserted replaced
10396:2bb3882075b6 10397:d7ed9dcc78e3
25 { 25 {
26 if(avctx->width & 1){ 26 if(avctx->width & 1){
27 av_log(avctx, AV_LOG_ERROR, "v210x needs even width\n"); 27 av_log(avctx, AV_LOG_ERROR, "v210x needs even width\n");
28 return -1; 28 return -1;
29 } 29 }
30 if(avcodec_check_dimensions(avctx, avctx->width, avctx->height) < 0)
31 return -1;
32 avctx->pix_fmt = PIX_FMT_YUV422P16; 30 avctx->pix_fmt = PIX_FMT_YUV422P16;
33 avctx->bits_per_raw_sample= 10; 31 avctx->bits_per_raw_sample= 10;
34 32
35 avctx->coded_frame= avcodec_alloc_frame(); 33 avctx->coded_frame= avcodec_alloc_frame();
36 34