Implement librtmp seek support.
authorHoward Chu <hyc@highlandsun.com>
Sun, 18 Apr 2010 19:09:25 +0000 (19:09 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 18 Apr 2010 19:09:25 +0000 (19:09 +0000)
commitfc8fa007fb6099643a1f742a162e5e5eda760fd6
treeec3196c5a1703310ec1038a793ea51bdca0bf77f
parentd79fc8403b829cab5199a662390873706aed7986
Implement librtmp seek support.

Implement flv_read_seek(), add a missing check on stream_index
and fix timestamp rounding in rtmp_read_seek().

Also add the flv_read_seek2() function, which is not enabled but is
useful as reference.
To actually implement flv_read_seek2() correctly, there would need to
be some corresponding av_url_read_fseek2() function to propagate the
timestamps down to the ByteIOContext and URLContext.

Patch by Howard Chu <hyc <at> highlandsun.com>.

See the thread:
Subject: [FFmpeg-devel] RTMP seek support
Date: 2010-03-28 23:35:02 GMT

Originally committed as revision 22904 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/flvdec.c
libavformat/librtmp.c