diff --git a/ffplay.c b/ffplay.c
index 392f8465c28bc78348e35f3e012079308b11257a..237ba93680fb72ad47addad40f18cc2c8fa0be89 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1617,7 +1617,7 @@ static int audio_decode_frame(VideoState *is, uint8_t *audio_buf, double *pts_pt
    cannot have a precise information */
 static int audio_write_get_buf_size(VideoState *is)
 {
-    return is->audio_hw_buf_size - is->audio_buf_index;
+    return is->audio_buf_size - is->audio_buf_index;
 }