Commit 4f98bf9d authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avformat/avio_internal: Don't include url.h

It is only included because two very rarely used functions
use pointers to URLContexts; use struct URLContext instead.
Also move ffio_geturlcontext() so that one can avoid
a forward declaration of struct URLContext (which would be
necessary as soon as FF_API_AVIODIRCONTEXT is no more).
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent 879178b4
......@@ -20,7 +20,6 @@
#define AVFORMAT_AVIO_INTERNAL_H
#include "avio.h"
#include "url.h"
#include "libavutil/log.h"
......@@ -194,6 +193,14 @@ unsigned long ff_crcA001_update(unsigned long checksum, const uint8_t *buf,
*/
int ffio_open_dyn_packet_buf(AVIOContext **s, int max_packet_size);
/**
* Return the URLContext associated with the AVIOContext
*
* @param s IO context
* @return pointer to URLContext or NULL.
*/
struct URLContext *ffio_geturlcontext(AVIOContext *s);
/**
* Create and initialize a AVIOContext for accessing the
* resource referenced by the URLContext h.
......@@ -205,15 +212,7 @@ int ffio_open_dyn_packet_buf(AVIOContext **s, int max_packet_size);
* @return >= 0 in case of success, a negative value corresponding to an
* AVERROR code in case of failure
*/
int ffio_fdopen(AVIOContext **s, URLContext *h);
/**
* Return the URLContext associated with the AVIOContext
*
* @param s IO context
* @return pointer to URLContext or NULL.
*/
URLContext *ffio_geturlcontext(AVIOContext *s);
int ffio_fdopen(AVIOContext **s, struct URLContext *h);
/**
......
......@@ -29,6 +29,7 @@
#include "avio_internal.h"
#include "dash.h"
#include "demux.h"
#include "url.h"
#define INITIAL_BUFFER_SIZE 32768
......
......@@ -30,6 +30,7 @@
#include "avformat.h"
#include "id3v2.h"
#include "internal.h"
#include "url.h"
/**
......
......@@ -43,6 +43,7 @@
#include "internal.h"
#include "avio_internal.h"
#include "id3v2.h"
#include "url.h"
#include "hls_sample_encryption.h"
......
......@@ -51,6 +51,7 @@
#include "internal.h"
#include "mux.h"
#include "os_support.h"
#include "url.h"
typedef enum {
HLS_START_SEQUENCE_AS_START_NUMBER = 0,
......
......@@ -23,6 +23,7 @@
#include "avio_internal.h"
#include "rtpenc_chain.h"
#include "rtp.h"
#include "url.h"
#include "libavutil/opt.h"
int ff_rtp_chain_mux_open(AVFormatContext **out, AVFormatContext *s,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment