Mercurial > libavformat.hg
diff rm.h @ 4096:233ba738a68e libavformat
Don't access RMContext directly in rdt.c. Rather, use the return value of
ff_rm_parse_packet() to indicate whether more audio packets are available
in the demuxer from the last RM frame, and save that in the RDT parsing
context. See patch/discussion in "[PATCH] rdt.c: don't access RMContext"
on ML.
author | rbultje |
---|---|
date | Sat, 13 Dec 2008 21:37:27 +0000 |
parents | 1349c277efbd |
children | f8a743bd2df8 |
line wrap: on
line diff
--- a/rm.h Sat Dec 13 17:18:11 2008 +0000 +++ b/rm.h Sat Dec 13 21:37:27 2008 +0000 @@ -93,7 +93,9 @@ * @param flags pointer to an integer containing the packet flags, may be updated * @param ts pointer to timestamp, may be updated - * @return 0 on success, errno codes on error + * @return >=0 on success (where >0 indicates there are cached samples that + * can be retrieved with subsequent calls to ff_rm_retrieve_cache()), + * errno codes on error */ int ff_rm_parse_packet (AVFormatContext *s, ByteIOContext *pb, AVStream *st, int len,