tiff: Replace deprecated PIX_FMT names by modern ones
authorDiego Biurrun <diego@biurrun.de>
Sat, 2 Aug 2014 15:47:46 +0000 (08:47 -0700)
committerDiego Biurrun <diego@biurrun.de>
Sat, 2 Aug 2014 19:54:37 +0000 (12:54 -0700)
libavcodec/tiff.c

index 6c72dc8..6afc2cb 100644 (file)
@@ -635,13 +635,13 @@ static int decode_frame(AVCodecContext *avctx,
         dst   = p->data[0];
         soff  = s->bpp >> 3;
         ssize = s->width * soff;
-        if (s->avctx->pix_fmt == PIX_FMT_RGB48LE) {
+        if (s->avctx->pix_fmt == AV_PIX_FMT_RGB48LE) {
             for (i = 0; i < s->height; i++) {
                 for (j = soff; j < ssize; j += 2)
                     AV_WL16(dst + j, AV_RL16(dst + j) + AV_RL16(dst + j - soff));
                 dst += stride;
             }
-        } else if (s->avctx->pix_fmt == PIX_FMT_RGB48BE) {
+        } else if (s->avctx->pix_fmt == AV_PIX_FMT_RGB48BE) {
             for (i = 0; i < s->height; i++) {
                 for (j = soff; j < ssize; j += 2)
                     AV_WB16(dst + j, AV_RB16(dst + j) + AV_RB16(dst + j - soff));