diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-12 12:06:49 +0200 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-05-16 14:13:03 -0700 |
commit | 3a7c977417f7904a6213048ed3e57dd79264d3d5 (patch) | |
tree | f8c6858629048baf1b980fb192d2f21eb80584a2 /ffplay.c | |
parent | 5dc65a3d0374ffd85e5ff1c89f5917d392897920 (diff) | |
download | ffmpeg-streaming-3a7c977417f7904a6213048ed3e57dd79264d3d5.zip ffmpeg-streaming-3a7c977417f7904a6213048ed3e57dd79264d3d5.tar.gz |
ffplay: remove audio_write_get_buf_size() forward declaration
Move up the definition of audio_write_get_buf_size(), so that it is
defined before it is used. Simplify.
(cherry picked from commit 8776f3d22e401e30d17856e341f6cabbbefa92f7)
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -218,7 +218,6 @@ typedef struct VideoState { } VideoState; static void show_help(void); -static int audio_write_get_buf_size(VideoState *is); /* options specified by the user */ static AVInputFormat *file_iformat; @@ -768,6 +767,13 @@ static void video_image_display(VideoState *is) } } +/* get the current audio output buffer size, in samples. With SDL, we + cannot have a precise information */ +static int audio_write_get_buf_size(VideoState *is) +{ + return is->audio_buf_size - is->audio_buf_index; +} + static inline int compute_mod(int a, int b) { a = a % b; @@ -2146,14 +2152,6 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr) } } -/* get the current audio output buffer size, in samples. With SDL, we - cannot have a precise information */ -static int audio_write_get_buf_size(VideoState *is) -{ - return is->audio_buf_size - is->audio_buf_index; -} - - /* prepare a new audio buffer */ static void sdl_audio_callback(void *opaque, Uint8 *stream, int len) { |