summaryrefslogtreecommitdiff
path: root/ffmpeg/libavcodec/avuienc.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/avuienc.c
parentb7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff)
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/avuienc.c')
-rw-r--r--ffmpeg/libavcodec/avuienc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg/libavcodec/avuienc.c b/ffmpeg/libavcodec/avuienc.c
index a4970a0..eb0046c 100644
--- a/ffmpeg/libavcodec/avuienc.c
+++ b/ffmpeg/libavcodec/avuienc.c
@@ -25,7 +25,7 @@
static av_cold int avui_encode_init(AVCodecContext *avctx)
{
- avctx->coded_frame = avcodec_alloc_frame();
+ avctx->coded_frame = av_frame_alloc();
if (avctx->width != 720 || avctx->height != 486 && avctx->height != 576) {
av_log(avctx, AV_LOG_ERROR, "Only 720x486 and 720x576 are supported.\n");
@@ -101,6 +101,7 @@ static av_cold int avui_encode_close(AVCodecContext *avctx)
AVCodec ff_avui_encoder = {
.name = "avui",
+ .long_name = NULL_IF_CONFIG_SMALL("Avid Meridien Uncompressed"),
.type = AVMEDIA_TYPE_VIDEO,
.id = AV_CODEC_ID_AVUI,
.init = avui_encode_init,
@@ -108,5 +109,4 @@ AVCodec ff_avui_encoder = {
.close = avui_encode_close,
.capabilities = CODEC_CAP_EXPERIMENTAL,
.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_UYVY422, AV_PIX_FMT_NONE },
- .long_name = NULL_IF_CONFIG_SMALL("Avid Meridien Uncompressed"),
};