]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/packet.h
avcodec/put_bits: Parametrize bit buffer type
[ffmpeg] / libavcodec / packet.h
index 41485f452726b5cf76d8a23a624bfcf10c18b089..0a19a0eff3cfbbb1014cde1231163cd897c9e097 100644 (file)
@@ -282,6 +282,14 @@ enum AVPacketSideDataType {
      */
     AV_PKT_DATA_DOVI_CONF,
 
+    /**
+     * Timecode which conforms to SMPTE ST 12-1:2014. The data is an array of 4 uint32_t
+     * where the first uint32_t describes how many (1-3) of the other timecodes are used.
+     * The timecode format is described in the documentation of av_timecode_get_smpte_from_framenum()
+     * function in libavutil/timecode.h.
+     */
+    AV_PKT_DATA_S12M_TIMECODE,
+
     /**
      * The number of side data types.
      * This is not part of the public API/ABI in the sense that it may
@@ -580,7 +588,8 @@ int av_packet_shrink_side_data(AVPacket *pkt, enum AVPacketSideDataType type,
  *
  * @param pkt packet
  * @param type desired side information type
- * @param size pointer for side information size to store (optional)
+ * @param size If supplied, *size will be set to the size of the side data
+ *             or to zero if the desired side data is not present.
  * @return pointer to data if present or NULL otherwise
  */
 uint8_t* av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type,