diff mbox

[FFmpeg-devel,v2,2/2] avformat/dashenc: Format VP9 bitdepth as decimal instead of Hexadecimal

Message ID 1537171429-3941-2-git-send-email-kjeyapal@akamai.com
State Accepted
Commit 422be081a3d8def358d40de3c68b00ddc0b75cdb
Headers show

Commit Message

Jeyapal, Karthick Sept. 17, 2018, 8:03 a.m. UTC
From: Karthick Jeyapal <kjeyapal@akamai.com>

For example bitdepth should be printed as 10 instead of 0A. Thanks to Hendrik Leppkes for pointing this out
---
 libavformat/dashenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

James Almer Sept. 17, 2018, 5:33 p.m. UTC | #1
On 9/17/2018 5:03 AM, Karthick J wrote:
> From: Karthick Jeyapal <kjeyapal@akamai.com>
> 
> For example bitdepth should be printed as 10 instead of 0A. Thanks to Hendrik Leppkes for pointing this out
> ---
>  libavformat/dashenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
> index f429ebc..1a201c3 100644
> --- a/libavformat/dashenc.c
> +++ b/libavformat/dashenc.c
> @@ -211,7 +211,7 @@ static void set_vp9_codec_str(AVFormatContext *s, AVCodecParameters *par,
>      VPCC vpcc;
>      int ret = ff_isom_get_vpcc_features(s, par, frame_rate, &vpcc);
>      if (ret == 0) {
> -        av_strlcatf(str, size, "vp09.%02x.%02d.%02x",
> +        av_strlcatf(str, size, "vp09.%02x.%02d.%02d",
>                      vpcc.profile, vpcc.level, vpcc.bitdepth);
>      } else {
>          // Default to just vp9 in case of error while finding out profile or level

Both patches pushed. Thanks.
diff mbox

Patch

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index f429ebc..1a201c3 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -211,7 +211,7 @@  static void set_vp9_codec_str(AVFormatContext *s, AVCodecParameters *par,
     VPCC vpcc;
     int ret = ff_isom_get_vpcc_features(s, par, frame_rate, &vpcc);
     if (ret == 0) {
-        av_strlcatf(str, size, "vp09.%02x.%02d.%02x",
+        av_strlcatf(str, size, "vp09.%02x.%02d.%02d",
                     vpcc.profile, vpcc.level, vpcc.bitdepth);
     } else {
         // Default to just vp9 in case of error while finding out profile or level