From f7813a5324be39d13ab536c245d15dfc602a7849 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 29 Dec 2013 12:19:38 +0000 Subject: basic type mechanism working --- ffmpeg/libavcodec/loco.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ffmpeg/libavcodec/loco.c') diff --git a/ffmpeg/libavcodec/loco.c b/ffmpeg/libavcodec/loco.c index ffb9742..bf52c49 100644 --- a/ffmpeg/libavcodec/loco.c +++ b/ffmpeg/libavcodec/loco.c @@ -135,7 +135,7 @@ static int loco_decode_plane(LOCOContext *l, uint8_t *data, int width, int heigh if(buf_size<=0) return -1; - init_get_bits(&rc.gb, buf, buf_size*8); + init_get_bits8(&rc.gb, buf, buf_size); rc.save = 0; rc.run = 0; rc.run2 = 0; @@ -302,11 +302,11 @@ static av_cold int decode_init(AVCodecContext *avctx) AVCodec ff_loco_decoder = { .name = "loco", + .long_name = NULL_IF_CONFIG_SMALL("LOCO"), .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_LOCO, .priv_data_size = sizeof(LOCOContext), .init = decode_init, .decode = decode_frame, .capabilities = CODEC_CAP_DR1, - .long_name = NULL_IF_CONFIG_SMALL("LOCO"), }; -- cgit v1.2.3