comparison txd.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
78 } 78 }
79 79
80 if (p->data[0]) 80 if (p->data[0])
81 avctx->release_buffer(avctx, p); 81 avctx->release_buffer(avctx, p);
82 82
83 if (av_check_image_size(w, h, 0, avctx)) 83 if (av_image_check_size(w, h, 0, avctx))
84 return -1; 84 return -1;
85 if (w != avctx->width || h != avctx->height) 85 if (w != avctx->width || h != avctx->height)
86 avcodec_set_dimensions(avctx, w, h); 86 avcodec_set_dimensions(avctx, w, h);
87 if (avctx->get_buffer(avctx, p) < 0) { 87 if (avctx->get_buffer(avctx, p) < 0) {
88 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); 88 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");