Mercurial > libavcodec.hg
comparison ptx.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 |
|---|---|
| 63 buf += offset; | 63 buf += offset; |
| 64 | 64 |
| 65 if (p->data[0]) | 65 if (p->data[0]) |
| 66 avctx->release_buffer(avctx, p); | 66 avctx->release_buffer(avctx, p); |
| 67 | 67 |
| 68 if (av_check_image_size(w, h, 0, avctx)) | 68 if (av_image_check_size(w, h, 0, avctx)) |
| 69 return -1; | 69 return -1; |
| 70 if (w != avctx->width || h != avctx->height) | 70 if (w != avctx->width || h != avctx->height) |
| 71 avcodec_set_dimensions(avctx, w, h); | 71 avcodec_set_dimensions(avctx, w, h); |
| 72 if (avctx->get_buffer(avctx, p) < 0) { | 72 if (avctx->get_buffer(avctx, p) < 0) { |
| 73 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); | 73 av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); |
