mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-12 18:31:37 +00:00
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: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
879178b40d
commit
4f98bf9dbd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user