[2/3] avcodec: Define side data type for fallback track

Message ID 1446745744-22977-2-git-send-email-stebbins@jetheaddev.com
State New
Headers show

Commit Message

John Stebbins Nov. 5, 2015, 5:49 p.m.
This side data type is meant to be added to AVStream side data.
A fallback track indicates an alternate track to use when the
current track can not be decoded for some reason.  e.g. no
decoder available for codec.
---
 libavcodec/avcodec.h | 8 ++++++++
 libavcodec/version.h | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

Comments

Luca Barbato Nov. 5, 2015, 11:26 p.m. | #1
On 05/11/15 18:49, John Stebbins wrote:
> This side data type is meant to be added to AVStream side data.
> A fallback track indicates an alternate track to use when the
> current track can not be decoded for some reason.  e.g. no
> decoder available for codec.
> ---
>  libavcodec/avcodec.h | 8 ++++++++
>  libavcodec/version.h | 2 +-
>  2 files changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index e368d6b..ba4b088 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -1129,6 +1129,14 @@ enum AVPacketSideDataType {
>       * and FF_LAMBDA_MAX (bad).
>       */
>      AV_PKT_DATA_QUALITY_FACTOR,
> +
> +    /**
> +     * This side data contains an integer value representing the stream index
> +     * of a "fallback" track.  A fallback track indicates an alternate
> +     * track to use when the current track can not be decoded for some reason.
> +     * e.g. no decoder available for codec.
> +     */
> +    AV_PKT_DATA_FALLBACK_TRACK,
>  };
>  
>  typedef struct AVPacketSideData {
> diff --git a/libavcodec/version.h b/libavcodec/version.h
> index bd75525..5776670 100644
> --- a/libavcodec/version.h
> +++ b/libavcodec/version.h
> @@ -29,7 +29,7 @@
>  #include "libavutil/version.h"
>  
>  #define LIBAVCODEC_VERSION_MAJOR 57
> -#define LIBAVCODEC_VERSION_MINOR  8
> +#define LIBAVCODEC_VERSION_MINOR  9
>  #define LIBAVCODEC_VERSION_MICRO  0
>  
>  #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
> 

Ok.
Vittorio Giovara Nov. 6, 2015, 1:54 a.m. | #2
On Thu, Nov 5, 2015 at 6:49 PM, John Stebbins <stebbins@jetheaddev.com> wrote:
> This side data type is meant to be added to AVStream side data.
> A fallback track indicates an alternate track to use when the
> current track can not be decoded for some reason.  e.g. no
> decoder available for codec.
> ---
>  libavcodec/avcodec.h | 8 ++++++++
>  libavcodec/version.h | 2 +-
>  2 files changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> index e368d6b..ba4b088 100644
> --- a/libavcodec/avcodec.h
> +++ b/libavcodec/avcodec.h
> @@ -1129,6 +1129,14 @@ enum AVPacketSideDataType {
>       * and FF_LAMBDA_MAX (bad).
>       */
>      AV_PKT_DATA_QUALITY_FACTOR,
> +
> +    /**
> +     * This side data contains an integer value representing the stream index
> +     * of a "fallback" track.  A fallback track indicates an alternate
> +     * track to use when the current track can not be decoded for some reason.
> +     * e.g. no decoder available for codec.
> +     */
> +    AV_PKT_DATA_FALLBACK_TRACK,
>  };
>
>  typedef struct AVPacketSideData {
> diff --git a/libavcodec/version.h b/libavcodec/version.h
> index bd75525..5776670 100644
> --- a/libavcodec/version.h
> +++ b/libavcodec/version.h
> @@ -29,7 +29,7 @@
>  #include "libavutil/version.h"
>
>  #define LIBAVCODEC_VERSION_MAJOR 57
> -#define LIBAVCODEC_VERSION_MINOR  8
> +#define LIBAVCODEC_VERSION_MINOR  9
>  #define LIBAVCODEC_VERSION_MICRO  0
>
>  #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
> --
> 2.4.3

Ok, but there should be an APIchange entry too.

Patch

diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index e368d6b..ba4b088 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -1129,6 +1129,14 @@  enum AVPacketSideDataType {
      * and FF_LAMBDA_MAX (bad).
      */
     AV_PKT_DATA_QUALITY_FACTOR,
+
+    /**
+     * This side data contains an integer value representing the stream index
+     * of a "fallback" track.  A fallback track indicates an alternate
+     * track to use when the current track can not be decoded for some reason.
+     * e.g. no decoder available for codec.
+     */
+    AV_PKT_DATA_FALLBACK_TRACK,
 };
 
 typedef struct AVPacketSideData {
diff --git a/libavcodec/version.h b/libavcodec/version.h
index bd75525..5776670 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -29,7 +29,7 @@ 
 #include "libavutil/version.h"
 
 #define LIBAVCODEC_VERSION_MAJOR 57
-#define LIBAVCODEC_VERSION_MINOR  8
+#define LIBAVCODEC_VERSION_MINOR  9
 #define LIBAVCODEC_VERSION_MICRO  0
 
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \