OSDN Git Service

Separate the packet fetching from the data reading, so that the data reading
authorRonald S. Bultje <rsbultje@gmail.com>
Sat, 13 Dec 2008 17:18:11 +0000 (17:18 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Sat, 13 Dec 2008 17:18:11 +0000 (17:18 +0000)
commitf27544fd5b3b0d7663e79422d0215f80ef952a6b
tree6f2633fa174591b8ffa17e76dd5bb78d773d1406
parent8a9572c26f8a5b88966a0f2ee64750a40347d2fe
Separate the packet fetching from the data reading, so that the data reading
function is assured to parse at most one packet. This makes this function
useful for ASF data packet parsing in a "push-mode" in addition to the
current "pull-mode", and therefore allows for use of these functions in,
for example, the RTSP demuxer (for MS-RTSP support). Tested to give identical
output before and after for regular ASF playback, also see discussion in the
ML thread "[PATCH] asf.c: move packet_time_start=0 statement". Testsuite also
works after the patch, tested by Benoit Fouet.

Originally committed as revision 16108 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/asf.c