diff options
author | Clément Bœsch <u@pkh.me> | 2017-03-27 01:31:37 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2017-03-29 14:49:29 +0200 |
commit | 67e370ee527e9aa88d8754afd7345ffd9f6f6159 (patch) | |
tree | f1825cf6931033c10721bd65ea741303d430dbde /libavcodec/dds.c | |
parent | f156d35321bb600b2309b78185d600b2fa64d84a (diff) | |
download | ffmpeg-67e370ee527e9aa88d8754afd7345ffd9f6f6159.tar.gz |
lavc: fix usages of av_get_codec_tag_string()
Diffstat (limited to 'libavcodec/dds.c')
-rw-r--r-- | libavcodec/dds.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libavcodec/dds.c b/libavcodec/dds.c index fa0f34d7e7..84b440f741 100644 --- a/libavcodec/dds.c +++ b/libavcodec/dds.c @@ -117,7 +117,6 @@ static int parse_pixel_format(AVCodecContext *avctx) { DDSContext *ctx = avctx->priv_data; GetByteContext *gbc = &ctx->gbc; - char buf[32]; uint32_t flags, fourcc, gimp_tag; enum DDSDXGIFormat dxgi; int size, bpp, r, g, b, a; @@ -161,13 +160,10 @@ static int parse_pixel_format(AVCodecContext *avctx) bytestream2_skip(gbc, 4); // caps4 bytestream2_skip(gbc, 4); // reserved2 - av_get_codec_tag_string(buf, sizeof(buf), fourcc); av_log(avctx, AV_LOG_VERBOSE, "fourcc %s bpp %d " - "r 0x%x g 0x%x b 0x%x a 0x%x\n", buf, bpp, r, g, b, a); - if (gimp_tag) { - av_get_codec_tag_string(buf, sizeof(buf), gimp_tag); - av_log(avctx, AV_LOG_VERBOSE, "and GIMP-DDS tag %s\n", buf); - } + "r 0x%x g 0x%x b 0x%x a 0x%x\n", av_fourcc2str(fourcc), bpp, r, g, b, a); + if (gimp_tag) + av_log(avctx, AV_LOG_VERBOSE, "and GIMP-DDS tag %s\n", av_fourcc2str(gimp_tag)); if (ctx->compressed) avctx->pix_fmt = AV_PIX_FMT_RGBA; @@ -344,7 +340,7 @@ static int parse_pixel_format(AVCodecContext *avctx) } break; default: - av_log(avctx, AV_LOG_ERROR, "Unsupported %s fourcc.\n", buf); + av_log(avctx, AV_LOG_ERROR, "Unsupported %s fourcc.\n", av_fourcc2str(fourcc)); return AVERROR_INVALIDDATA; } } else if (ctx->paletted) { |