mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-05 21:55:37 +01:00
avio: move init_put_byte() to a new private header and rename it
init_put_byte should never be used outside of lavf, since sizeof(AVIOContext) isn't part of public ABI. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
This commit is contained in:
committed by
Ronald S. Bultje
parent
ae628ec1fd
commit
e731b8d872
@@ -25,6 +25,7 @@
|
||||
#include "network.h"
|
||||
#include "os_support.h"
|
||||
#include "internal.h"
|
||||
#include "avio_internal.h"
|
||||
#if HAVE_POLL_H
|
||||
#include <poll.h>
|
||||
#endif
|
||||
@@ -142,7 +143,7 @@ static int sap_read_header(AVFormatContext *s,
|
||||
}
|
||||
|
||||
av_log(s, AV_LOG_VERBOSE, "SDP:\n%s\n", sap->sdp);
|
||||
init_put_byte(&sap->sdp_pb, sap->sdp, strlen(sap->sdp), 0, NULL, NULL,
|
||||
ffio_init_context(&sap->sdp_pb, sap->sdp, strlen(sap->sdp), 0, NULL, NULL,
|
||||
NULL, NULL);
|
||||
|
||||
infmt = av_find_input_format("sdp");
|
||||
|
||||
Reference in New Issue
Block a user