]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/avformat.h
Merge commit '5fccedaa67390ccddd6347c8e1c71b7664558bcd'
[ffmpeg] / libavformat / avformat.h
index ebebb3fb6e7d893e461d193805fd4235868be5b2..7d2db6a3a0663b1559605d0f6562d86118200a08 100644 (file)
@@ -862,6 +862,8 @@ typedef struct AVStream {
      * - muxing: May be set by the caller before avformat_write_header().
      *
      * Freed by libavformat in avformat_free_context().
+     *
+     * @see av_format_inject_global_side_data()
      */
     AVPacketSideData *side_data;
     /**
@@ -889,6 +891,12 @@ typedef struct AVStream {
         double (*duration_error)[2][MAX_STD_TIMEBASES];
         int64_t codec_info_duration;
         int64_t codec_info_duration_fields;
+
+        /**
+         * 0  -> decoder has not been searched for yet.
+         * >0 -> decoder found
+         * <0 -> decoder with codec_id == -found_decoder has not been found
+         */
         int found_decoder;
 
         int64_t last_duration;
@@ -1043,7 +1051,7 @@ typedef struct AVStream {
     /**
      * Internal data to inject global side data
      */
-    int global_side_data_injected;
+    int inject_global_side_data;
 
 } AVStream;
 
@@ -1612,6 +1620,12 @@ void      av_format_set_opaque(AVFormatContext *s, void *opaque);
 av_format_control_message av_format_get_control_message_cb(const AVFormatContext *s);
 void      av_format_set_control_message_cb(AVFormatContext *s, av_format_control_message callback);
 
+/**
+ * This function will cause global side data to be injected in the next packet
+ * of each stream as well as after any subsequent seek.
+ */
+void av_format_inject_global_side_data(AVFormatContext *s);
+
 /**
  * Returns the method used to set ctx->duration.
  *