X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fpcx.c;h=35f85f94c382693d7bf51547a5eb5018f5f8a14d;hb=2caf19e90f270abe1e80a3e85acaf0eb5c9d0aac;hp=072d136d81051d42c7ec5815d7417b5af996b466;hpb=70f2314df06e9980b99b66fe07372066a630ae73;p=ffmpeg diff --git a/libavcodec/pcx.c b/libavcodec/pcx.c index 072d136d810..35f85f94c38 100644 --- a/libavcodec/pcx.c +++ b/libavcodec/pcx.c @@ -5,23 +5,24 @@ * This decoder does not support CGA palettes. I am unable to find samples * and Netpbm cannot generate them. * - * This file is part of FFmpeg. + * This file is part of Libav. * - * FFmpeg is free software; you can redistribute it and/or + * Libav is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * - * FFmpeg is distributed in the hope that it will be useful, + * Libav is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with FFmpeg; if not, write to the Free Software + * License along with Libav; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/imgutils.h" #include "avcodec.h" #include "bytestream.h" #include "get_bits.h" @@ -142,7 +143,7 @@ static int pcx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, if (p->data[0]) avctx->release_buffer(avctx, p); - if (avcodec_check_dimensions(avctx, w, h)) + if (av_image_check_size(w, h, 0, avctx)) return -1; if (w != avctx->width || h != avctx->height) avcodec_set_dimensions(avctx, w, h); @@ -151,7 +152,7 @@ static int pcx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, return -1; } - p->pict_type = FF_I_TYPE; + p->pict_type = AV_PICTURE_TYPE_I; ptr = p->data[0]; stride = p->linesize[0]; @@ -246,7 +247,7 @@ static av_cold int pcx_end(AVCodecContext *avctx) { return 0; } -AVCodec pcx_decoder = { +AVCodec ff_pcx_decoder = { "pcx", AVMEDIA_TYPE_VIDEO, CODEC_ID_PCX,