Avoid buffer overruns when processing some MOV files with the amerge filter. Files produced by Adobe Premiere Pro CC have up to one second of audio not interleaved. With common settings (<= 48kHz) that makes up to 47 frames so a queue length of 64 makes sense. Fixes ticket #3510.
Showing the changes to libavfilter/bufferqueue.h (1 of 1 file). Show all
Unified · Split
| @@ -37,7 +37,7 @@ · 36 unmodified lines | |||
| 37 | * Powers of 2 are recommended. | 37 | * Powers of 2 are recommended. |
| 38 | */ | 38 | */ |
| 39 | #ifndef FF_BUFQUEUE_SIZE | 39 | #ifndef FF_BUFQUEUE_SIZE |
| 40 | #define FF_BUFQUEUE_SIZE 32 | 40 | #define FF_BUFQUEUE_SIZE 64 |
| 41 | #endif | 41 | #endif |
| 42 | 42 | ||
| 43 | #include "avfilter.h" | 43 | #include "avfilter.h" |