diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-08-02 18:41:12 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-08-02 18:41:12 +0200 |
commit | 3fe01eca21d5ce7cdd7e6af0ceec40bec05cfba2 (patch) | |
tree | db97c292af9e8aa8ff3b157dde1bad7a8ce6f197 /libavcodec | |
parent | 5b69fb783e9da81d9f4fec8abb05f02041fd7a7e (diff) | |
download | ffmpeg-3fe01eca21d5ce7cdd7e6af0ceec40bec05cfba2.tar.gz |
avcodec/xfaceenc: remove coded_frame usage
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/xfaceenc.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/libavcodec/xfaceenc.c b/libavcodec/xfaceenc.c index 38f63e622a..bfb9fb9ece 100644 --- a/libavcodec/xfaceenc.c +++ b/libavcodec/xfaceenc.c @@ -124,13 +124,6 @@ static void encode_block(char *bitmap, int w, int h, int level, ProbRangesQueue } } -static av_cold int xface_encode_init(AVCodecContext *avctx) -{ - avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I; - - return 0; -} - static void push_integer(BigInt *b, const ProbRange *prange) { uint8_t r; @@ -218,19 +211,13 @@ static int xface_encode_frame(AVCodecContext *avctx, AVPacket *pkt, return 0; } -static av_cold int xface_encode_close(AVCodecContext *avctx) -{ - return 0; -} - AVCodec ff_xface_encoder = { .name = "xface", .long_name = NULL_IF_CONFIG_SMALL("X-face image"), .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_XFACE, .priv_data_size = sizeof(XFaceContext), - .init = xface_encode_init, - .close = xface_encode_close, .encode2 = xface_encode_frame, .pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_MONOWHITE, AV_PIX_FMT_NONE }, + .capabilities = AV_CODEC_CAP_INTRA_ONLY, }; |