Revision 0341b699

View differences:

libavformat/internal.h
137 137
                const char *authorization, const char *hostname,
138 138
                int port, const char *fmt, ...);
139 139

  
140
/**
141
 * Appends the media-specific SDP fragment for the media stream c
142
 * to the buffer buff.
143
 *
144
 * Note, the buffer needs to be initialized, since it is appended to
145
 * existing content.
146
 *
147
 * @param buff the buffer to append the SDP fragment to
148
 * @param size the size of the buff buffer
149
 * @param c the AVCodecContext of the media to describe
150
 * @param dest_addr the destination address of the media stream, may be NULL
151
 * @param port the destination port of the media stream, 0 if unknown
152
 * @param ttl the time to live of the stream, 0 if not multicast
153
 */
154
void ff_sdp_write_media(char *buff, int size, AVCodecContext *c,
155
                        const char *dest_addr, int port, int ttl);
156

  
140 157
#endif /* AVFORMAT_INTERNAL_H */
libavformat/sdp.c
294 294
    return buff;
295 295
}
296 296

  
297
static void sdp_write_media(char *buff, int size, AVCodecContext *c, const char *dest_addr, int port, int ttl)
297
void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, const char *dest_addr, int port, int ttl)
298 298
{
299 299
    const char *type;
300 300
    int payload_type;
......
352 352
            resolve_destination(dst, sizeof(dst));
353 353
        }
354 354
        for (j = 0; j < ac[i]->nb_streams; j++) {
355
            sdp_write_media(buff, size,
355
            ff_sdp_write_media(buff, size,
356 356
                                  ac[i]->streams[j]->codec, dst[0] ? dst : NULL,
357 357
                                  (port > 0) ? port + j * 2 : 0, ttl);
358 358
            if (port <= 0) {
......
369 369
{
370 370
    return AVERROR(ENOSYS);
371 371
}
372

  
373
void ff_sdp_write_media(char *buff, int size, AVCodecContext *c,
374
                        const char *dest_addr, int port, int ttl)
375
{
376
}
372 377
#endif

Also available in: Unified diff