History

mpegaudiodec: switch error detection check to AV_EF_BUFFER

Dustin Brody committed 14 years ago

Commit d2a00411 parent 51244231 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/mpegaudiodec.c+1−1
@@ -985,7 +985,7 @@ static int huffman_decode(MPADecodeContext *s, GranuleDef *g, · 984 unmodified lines
985985 /* skip extension bits */
986986 bits_left = end_pos2 - get_bits_count(&s->gb);
987987 //av_log(NULL, AV_LOG_ERROR, "left:%d buf:%p\n", bits_left, s->in_gb.buffer);
988− if (bits_left < 0 && (s->err_recognition & AV_EF_BITSTREAM)) {
988+ if (bits_left < 0 && (s->err_recognition & AV_EF_BUFFER)) {
989989 av_log(s->avctx, AV_LOG_ERROR, "bits_left=%d\n", bits_left);
990990 s_index=0;
991991 } else if (bits_left > 0 && (s->err_recognition & AV_EF_BUFFER)) {

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