diff options
author | Luca Abeni <lucabe72@email.it> | 2007-08-05 13:44:56 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2007-08-05 13:44:56 +0000 |
commit | 8767b80f5faa59bace5360465b68c39a24075bf1 (patch) | |
tree | 32403fc500c5309dc3e491e34b81650354bbbf51 /libavformat/avformat.h | |
parent | fe4ff07aa0085e3db704b9aaa74fbf4d37b5c217 (diff) | |
download | ffmpeg-8767b80f5faa59bace5360465b68c39a24075bf1.tar.gz |
Change avf_sdp_create() to get a pre-allocated buffer as input, and to
return an integer (0 if the SDP has been succesfully created, < 0 in case
of error)
Originally committed as revision 9947 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index e50fe64375..ea93e85f08 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -842,12 +842,13 @@ int av_filename_number_test(const char *filename); * multiple AVStreams (one AVStream per RTP stream). Otherwise, * all the contexts in the array (an AVCodecContext per RTP stream) * must contain only one AVStream - * @param n_streams number of AVCodecContexts contained in ac - * @return a pointer to the SDP (an array of chars which is allocated by - * avf_sdp_create(), and must be freed by the caller), or NULL in - * case of failure. + * @param n_files number of AVCodecContexts contained in ac + * @param buff buffer where the SDP will be stored (must be allocated by + * the caller + * @param size the size of the buffer + * @return 0 if OK. AVERROR_xxx if error. */ -char *avf_sdp_create(AVFormatContext *ac[], int n_streams); +int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size); #ifdef HAVE_AV_CONFIG_H |