mirror of https://git.ffmpeg.org/ffmpeg.git
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
This commit is contained in:
parent
07f2a575c5
commit
8157483d64
5
ffmpeg.c
5
ffmpeg.c
|
@ -1272,8 +1272,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
|
||||||
AVFormatContext *os;
|
AVFormatContext *os;
|
||||||
AVOutputStream *ost;
|
AVOutputStream *ost;
|
||||||
int ret, i;
|
int ret, i;
|
||||||
uint8_t *data_buf;
|
int got_picture;
|
||||||
int data_size, got_picture;
|
|
||||||
AVFrame picture;
|
AVFrame picture;
|
||||||
void *buffer_to_free;
|
void *buffer_to_free;
|
||||||
static unsigned int samples_size= 0;
|
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 we have more to decode or while the decoder did output something on EOF
|
||||||
while (avpkt.size > 0 || (!pkt && ist->next_pts != ist->pts)) {
|
while (avpkt.size > 0 || (!pkt && ist->next_pts != ist->pts)) {
|
||||||
|
uint8_t *data_buf;
|
||||||
|
int data_size;
|
||||||
handle_eof:
|
handle_eof:
|
||||||
ist->pts= ist->next_pts;
|
ist->pts= ist->next_pts;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue