History

avcodec/shorten: use init_get_bits8()

Paul B Mahol committed 11 years ago

Commit 94cfb6d1 parent c0d676f1 file · +2 −1Browse files

Unified · Split

libavcodec/shorten.c+2−1
@@ -466,7 +466,8 @@ static int shorten_decode_frame(AVCodecContext *avctx, void *data, · 465 unmodified lines
466466 }
467467 }
468468 /* init and position bitstream reader */
469− init_get_bits(&s->gb, buf, buf_size * 8);
469+ if ((ret = init_get_bits8(&s->gb, buf, buf_size)) < 0)
470+ return ret;
470471 skip_bits(&s->gb, s->bitindex);
471472
472473 /* process header or next subblock */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t