diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-29 23:09:29 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-05-29 23:09:29 +0000 |
commit | 1cb4d12c72fb9cac009f043eab34068946e2350c (patch) | |
tree | ac6cee3a175d2e084cb9d441e80c955c913f8a32 /ffserver.c | |
parent | 9d58e0a9e1a197f64fa640c6f18c981b1d2c919b (diff) | |
download | ffmpeg-1cb4d12c72fb9cac009f043eab34068946e2350c.tar.gz |
cosmetics, move declaration where it is used, remove now useless block
Originally committed as revision 13540 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ffserver.c b/ffserver.c index 705c557352..04e0d2a782 100644 --- a/ffserver.c +++ b/ffserver.c @@ -2043,9 +2043,6 @@ static int http_prepare_data(HTTPContext *c) break; case HTTPSTATE_SEND_DATA: /* find a new packet */ - { - AVPacket pkt; - /* read a packet from the input stream */ if (c->stream->feed) ffm_set_write_index(c->fmt_in, @@ -2057,6 +2054,7 @@ static int http_prepare_data(HTTPContext *c) /* We have timed out */ c->state = HTTPSTATE_SEND_DATA_TRAILER; else { + AVPacket pkt; redo: if (av_read_frame(c->fmt_in, &pkt) < 0) { if (c->stream->feed && c->stream->feed->feed_opened) { @@ -2191,7 +2189,6 @@ static int http_prepare_data(HTTPContext *c) av_free_packet(&pkt); } } - } break; default: case HTTPSTATE_SEND_DATA_TRAILER: |