summaryrefslogtreecommitdiff
path: root/ffmpeg/libavcodec/y41penc.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/y41penc.c
parentb7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff)
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/y41penc.c')
-rw-r--r--ffmpeg/libavcodec/y41penc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg/libavcodec/y41penc.c b/ffmpeg/libavcodec/y41penc.c
index 1a8f0fb..8f67944 100644
--- a/ffmpeg/libavcodec/y41penc.c
+++ b/ffmpeg/libavcodec/y41penc.c
@@ -30,7 +30,7 @@ static av_cold int y41p_encode_init(AVCodecContext *avctx)
return AVERROR_INVALIDDATA;
}
- avctx->coded_frame = avcodec_alloc_frame();
+ avctx->coded_frame = av_frame_alloc();
avctx->bits_per_coded_sample = 12;
if (!avctx->coded_frame) {
@@ -91,6 +91,7 @@ static av_cold int y41p_encode_close(AVCodecContext *avctx)
AVCodec ff_y41p_encoder = {
.name = "y41p",
+ .long_name = NULL_IF_CONFIG_SMALL("Uncompressed YUV 4:1:1 12-bit"),
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_Y41P,
.init = y41p_encode_init,
@@ -98,5 +99,4 @@ AVCodec ff_y41p_encoder = {
.close = y41p_encode_close,
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV411P,
AV_PIX_FMT_NONE },
- .long_name = NULL_IF_CONFIG_SMALL("Uncompressed YUV 4:1:1 12-bit"),
};