summaryrefslogtreecommitdiff
path: root/ffmpeg/libavcodec/loco.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/loco.c
parentb7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff)
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/loco.c')
-rw-r--r--ffmpeg/libavcodec/loco.c4
1 files changed, 2 insertions, 2 deletions
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"),
};