X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Flibxavs.c;h=d11c4248e1b53491cdf42e05fa1ed4cae8f6e609;hb=2f37321abcbf9be5f58647b17155c0e257949c0d;hp=c4ac73333bc5ca7ab4697303f9e38ef8b3e8b877;hpb=de29597680815bfdb0c1de3dcf02355bdf534b8f;p=ffmpeg diff --git a/libavcodec/libxavs.c b/libavcodec/libxavs.c index c4ac73333bc..d11c4248e1b 100644 --- a/libavcodec/libxavs.c +++ b/libavcodec/libxavs.c @@ -2,20 +2,20 @@ * AVS encoding using the xavs library * Copyright (C) 2010 Amanda, Y.N. Wu * - * 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 */ @@ -138,14 +138,14 @@ static int XAVS_frame(AVCodecContext *ctx, uint8_t *buf, switch (pic_out.i_type) { case XAVS_TYPE_IDR: case XAVS_TYPE_I: - x4->out_pic.pict_type = FF_I_TYPE; + x4->out_pic.pict_type = AV_PICTURE_TYPE_I; break; case XAVS_TYPE_P: - x4->out_pic.pict_type = FF_P_TYPE; + x4->out_pic.pict_type = AV_PICTURE_TYPE_P; break; case XAVS_TYPE_B: case XAVS_TYPE_BREF: - x4->out_pic.pict_type = FF_B_TYPE; + x4->out_pic.pict_type = AV_PICTURE_TYPE_B; break; } @@ -336,9 +336,9 @@ static av_cold int XAVS_init(AVCodecContext *avctx) return 0; } -AVCodec libxavs_encoder = { +AVCodec ff_libxavs_encoder = { .name = "libxavs", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .id = CODEC_ID_CAVS, .priv_data_size = sizeof(XavsContext), .init = XAVS_init,