aboutsummaryrefslogtreecommitdiffstats
path: root/ffplay.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2012-09-06 23:35:04 +0200
committerMarton Balint <cus@passwd.hu>2012-09-11 22:15:38 +0200
commitcdea19e75a1854748a55e5a1a09b53cc4bf789c5 (patch)
tree034a0b41f2795ccac56d6116900bef844c3315e3 /ffplay.c
parent66532cbfdc3e0e937cd60fa4804ce2d212120bfc (diff)
downloadffmpeg-cdea19e75a1854748a55e5a1a09b53cc4bf789c5.tar.gz
ffplay: increase sample array buffer
A decoded and resampled audio frame may not fit in the current size which is not handled by the current code causing out of order waveform displays or even channel mixups. A todo is added because this part can certainly be improved to consume less memory but work reliably for any frame size. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffplay.c b/ffplay.c
index 6a9349e538..42f03b860b 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -82,7 +82,8 @@ const int program_birth_year = 2003;
#define AUDIO_DIFF_AVG_NB 20
/* NOTE: the size must be big enough to compensate the hardware audio buffersize size */
-#define SAMPLE_ARRAY_SIZE (2 * 65536)
+/* TODO: We assume that a decoded and resampled frame fits into this buffer */
+#define SAMPLE_ARRAY_SIZE (8 * 65536)
static int sws_flags = SWS_BICUBIC;