Skip to content
Snippets Groups Projects
Commit 0c1f5b93 authored by Alex Converse's avatar Alex Converse
Browse files

cljr: init_get_bits size in bits instead of bytes

parent b7ce4f1d
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ static int decode_frame(AVCodecContext *avctx,
p->pict_type= AV_PICTURE_TYPE_I;
p->key_frame= 1;
init_get_bits(&a->gb, buf, buf_size);
init_get_bits(&a->gb, buf, buf_size * 8);
for(y=0; y<avctx->height; y++){
uint8_t *luma= &a->picture.data[0][ y*a->picture.linesize[0] ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment