Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-12 14:06:49 +0400
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-13 12:06:27 +0400
commit8776f3d22e401e30d17856e341f6cabbbefa92f7 (patch)
treefd3f274099628243e392e254b6fc442b768d4431 /ffplay.c
parenta6f395d6c5dc2c3503444c7119bbff628c7b6887 (diff)
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.
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/ffplay.c b/ffplay.c
index 13505f8a6a..8d7b4e8e08 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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;
@@ -763,6 +762,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)
{
return a < 0 ? a%b + b : a%b;
@@ -2141,14 +2147,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)
{