[FFmpeg-cvslog] avcodec/xfaceenc: remove coded_frame usage
Paul B Mahol
git at videolan.org
Sun Aug 2 18:49:28 CEST 2015
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Aug 2 18:41:12 2015 +0200| [3fe01eca21d5ce7cdd7e6af0ceec40bec05cfba2] | committer: Paul B Mahol
avcodec/xfaceenc: remove coded_frame usage
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3fe01eca21d5ce7cdd7e6af0ceec40bec05cfba2
---
libavcodec/xfaceenc.c | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/libavcodec/xfaceenc.c b/libavcodec/xfaceenc.c
index 38f63e6..bfb9fb9 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,
};
More information about the ffmpeg-cvslog
mailing list