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:
authorMichael Niedermayer <michaelni@gmx.at>2010-01-07 03:47:23 +0300
committerMichael Niedermayer <michaelni@gmx.at>2010-01-07 03:47:23 +0300
commit8157483d6436194e901717cb1aa3bd1aaf6d3dd7 (patch)
treeb24f0a6829d9601d01a567be790c93d3e33ef145 /ffmpeg.c
parent07f2a575c50a2473633113d4591db00d0dca3128 (diff)
Move the definitions of data_buf and data_size closer to where they are used.
Originally committed as revision 21040 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 11350ae4f1..4e51c4d7d2 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1272,8 +1272,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
AVFormatContext *os;
AVOutputStream *ost;
int ret, i;
- uint8_t *data_buf;
- int data_size, got_picture;
+ int got_picture;
AVFrame picture;
void *buffer_to_free;
static unsigned int samples_size= 0;
@@ -1300,6 +1299,8 @@ static int output_packet(AVInputStream *ist, int ist_index,
//while we have more to decode or while the decoder did output something on EOF
while (avpkt.size > 0 || (!pkt && ist->next_pts != ist->pts)) {
+ uint8_t *data_buf;
+ int data_size;
handle_eof:
ist->pts= ist->next_pts;