History

avcodec/metasound: use init_get_bits8()

Paul B Mahol committed 9 years ago

Commit 2b707011 parent 7ecdc031 file · +3 −2Browse files

Unified · Split

libavcodec/metasound.c+3−2
@@ -170,9 +170,10 @@ static int metasound_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx, · 169 unmodified lines
170170 int channels = tctx->avctx->channels;
171171 int sub;
172172 GetBitContext gb;
173− int i, j, k;
173+ int i, j, k, ret;
174174
175− init_get_bits(&gb, buf, buf_size * 8);
175+ if ((ret = init_get_bits8(&gb, buf, buf_size)) < 0)
176+ return ret;
176177
177178 for (tctx->cur_frame = 0; tctx->cur_frame < tctx->frames_per_packet;
178179 tctx->cur_frame++) {

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