diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-22 00:22:21 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-22 00:22:21 +0000 |
commit | 60a04f7fc9cf491522c3e213fa039bf6d3163232 (patch) | |
tree | ec1c1dce9dd8a0a980dfc4935dd5c8f2bcf9ea57 /ffserver.c | |
parent | b453924f3c63ee212c397410266fdbb1ffb8f2aa (diff) | |
download | ffmpeg-60a04f7fc9cf491522c3e213fa039bf6d3163232.tar.gz |
use av_seek_frame to flush demxu pending packets, fixes seeking, should have been done when av_find_stream_info was added
Originally committed as revision 13855 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c index 27c998a1c2..4f80490675 100644 --- a/ffserver.c +++ b/ffserver.c @@ -1953,7 +1953,7 @@ static int open_input_stream(HTTPContext *c, const char *info) #if 1 if (c->fmt_in->iformat->read_seek) - c->fmt_in->iformat->read_seek(c->fmt_in, 0, stream_pos, 0); + av_seek_frame(c->fmt_in, -1, stream_pos, 0); #endif /* set the start time (needed for maxtime and RTP packet timing) */ c->start_time = cur_time; |