History

avcodec/flac_parser: Raise threshold for detecting invalid data

Fixes regression from Ticket5428

Michael Niedermayer committed 10 years ago

Commit b0b36761 parent 6c983981 file · +2 −2Browse files

Unified · Split

libavcodec/flac_parser.c+2−2
@@ -617,8 +617,8 @@ static int flac_parse(AVCodecParserContext *s, AVCodecContext *avctx, · 616 unmodified lines
617617
618618 if (!av_fifo_space(fpc->fifo_buf) &&
619619 av_fifo_size(fpc->fifo_buf) / FLAC_AVG_FRAME_SIZE >
620− fpc->nb_headers_buffered * 10) {
621− /* There is less than one valid flac header buffered for 10 headers
620+ fpc->nb_headers_buffered * 20) {
621+ /* There is less than one valid flac header buffered for 20 headers
622622 * buffered. Therefore the fifo is most likely filled with invalid
623623 * data and the input is not a flac file. */
624624 goto handle_error;

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