*/
int header_written;
int write_header_ret;
+
+ /**
+ * Timestamp of the end of the shortest stream.
+ */
+ int64_t shortest_end;
};
struct AVStreamInternal {
*/
int ff_stream_add_bitstream_filter(AVStream *st, const char *name, const char *args);
+/**
+ * Copy encoding parameters from source to destination stream
+ *
+ * @param dst pointer to destination AVStream
+ * @param src pointer to source AVStream
+ * @return >=0 on success, AVERROR code on error
+ */
+int ff_stream_encode_params_copy(AVStream *dst, const AVStream *src);
+
/**
* Wrap errno on rename() error.
*
/**
* Copies the whilelists from one context to the other
*/
-int ff_copy_whiteblacklists(AVFormatContext *dst, AVFormatContext *src);
+int ff_copy_whiteblacklists(AVFormatContext *dst, const AVFormatContext *src);
int ffio_open2_wrapper(struct AVFormatContext *s, AVIOContext **pb, const char *url, int flags,
const AVIOInterruptCB *int_cb, AVDictionary **options);
*/
#define FFERROR_REDO FFERRTAG('R','E','D','O')
+/**
+ * Utility function to open IO stream of output format.
+ *
+ * @param s AVFormatContext
+ * @param url URL or file name to open for writing
+ * @options optional options which will be passed to io_open callback
+ * @return >=0 on success, negative AVERROR in case of failure
+ */
+int ff_format_output_open(AVFormatContext *s, const char *url, AVDictionary **options);
+
/*
* A wrapper around AVFormatContext.io_close that should be used
* instead of calling the pointer directly.