Mercurial > libavcodec.hg
comparison yop.c @ 12462:ffb3668ff7af libavcodec
Use new imgutils.h API names, fix deprecation warnings.
author | stefano |
---|---|
date | Tue, 07 Sep 2010 19:15:29 +0000 |
parents | 914f484bb476 |
children |
comparison
equal
deleted
inserted
replaced
12461:25174028da0a | 12462:ffb3668ff7af |
---|---|
83 { | 83 { |
84 YopDecContext *s = avctx->priv_data; | 84 YopDecContext *s = avctx->priv_data; |
85 s->avctx = avctx; | 85 s->avctx = avctx; |
86 | 86 |
87 if (avctx->width & 1 || avctx->height & 1 || | 87 if (avctx->width & 1 || avctx->height & 1 || |
88 av_check_image_size(avctx->width, avctx->height, 0, avctx) < 0) { | 88 av_image_check_size(avctx->width, avctx->height, 0, avctx) < 0) { |
89 av_log(avctx, AV_LOG_ERROR, "YOP has invalid dimensions\n"); | 89 av_log(avctx, AV_LOG_ERROR, "YOP has invalid dimensions\n"); |
90 return -1; | 90 return -1; |
91 } | 91 } |
92 | 92 |
93 avctx->pix_fmt = PIX_FMT_PAL8; | 93 avctx->pix_fmt = PIX_FMT_PAL8; |