Fixes regression from Ticket5428
Unified · Split
| @@ -617,8 +617,8 @@ static int flac_parse(AVCodecParserContext *s, AVCodecContext *avctx, · 616 unmodified lines | ||
| 617 | 617 | |
| 618 | 618 | if (!av_fifo_space(fpc->fifo_buf) && |
| 619 | 619 | 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 | |
| 622 | 622 | * buffered. Therefore the fifo is most likely filled with invalid |
| 623 | 623 | * data and the input is not a flac file. */ |
| 624 | 624 | goto handle_error; |