summaryrefslogtreecommitdiff
path: root/ffmpeg/libavcodec/xfaceenc.c
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
committerTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
commitf7813a5324be39d13ab536c245d15dfc602a7849 (patch)
treefad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavcodec/xfaceenc.c
parentb7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff)
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/xfaceenc.c')
-rw-r--r--ffmpeg/libavcodec/xfaceenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg/libavcodec/xfaceenc.c b/ffmpeg/libavcodec/xfaceenc.c
index 5206afd..e213c9d 100644
--- a/ffmpeg/libavcodec/xfaceenc.c
+++ b/ffmpeg/libavcodec/xfaceenc.c
@@ -125,7 +125,7 @@ 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 = avcodec_alloc_frame();
+ avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)
return AVERROR(ENOMEM);
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
@@ -227,6 +227,7 @@ static av_cold int xface_encode_close(AVCodecContext *avctx)
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),
@@ -234,5 +235,4 @@ AVCodec ff_xface_encoder = {
.close = xface_encode_close,
.encode2 = xface_encode_frame,
.pix_fmts = (const enum PixelFormat[]) { AV_PIX_FMT_MONOWHITE, AV_PIX_FMT_NONE },
- .long_name = NULL_IF_CONFIG_SMALL("X-face image"),
};