diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-09-03 00:05:55 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-09-03 00:05:55 +0000 |
commit | 79d5045d33db3abdf6d18e6ed650d3a7025e19ba (patch) | |
tree | 9788960b14246b4c21d3e064e0197ebfc6c7cce4 /libavformat/rm.h | |
parent | 2a43a093edd8e717cc14d3cf14a8562f7f711f02 (diff) | |
download | ffmpeg-79d5045d33db3abdf6d18e6ed650d3a7025e19ba.tar.gz |
Use chunk-size in function calling mdpr_read_codecdata() rather than in the
function itself. This way, old-style (.ra4) RTSP/RDT OpaqueData chunks can
be parsed using this function as well (they don't have the size bits). See
discussion on ML in "[PATCH] rmdec.c - small read_mdpr_codecdata() API
modification".
Originally committed as revision 15163 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rm.h')
-rw-r--r-- | libavformat/rm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rm.h b/libavformat/rm.h index 802af74775..a57e517bab 100644 --- a/libavformat/rm.h +++ b/libavformat/rm.h @@ -70,9 +70,10 @@ typedef struct { * @param s context containing RMContext and ByteIOContext for stream reading * @param st the stream that the MDPR chunk belongs to and where to store the * parameters read from the chunk into + * @param codec_data_size size of the MDPR chunk * @return 0 on success, errno codes on error */ -int ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVStream *st); +int ff_rm_read_mdpr_codecdata (AVFormatContext *s, AVStream *st, int codec_data_size); /** * Parse one rm-stream packet from the input bytestream. |