diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-09-18 18:21:29 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-09-18 18:49:15 +0200 |
commit | 6216b4780b16c0994e0ee4bcd1f354f35f674856 (patch) | |
tree | ab9c558f6711e26ab774dac858937aff1fbe2e0d | |
parent | 260de8a264b7525d6ce5a16f3a46d612f03d1a49 (diff) | |
download | ffmpeg-6216b4780b16c0994e0ee4bcd1f354f35f674856.tar.gz |
avcodec/sheervideo: print internal format in debug log
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/sheervideo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/sheervideo.c b/libavcodec/sheervideo.c index be14e710e9..f8490c916a 100644 --- a/libavcodec/sheervideo.c +++ b/libavcodec/sheervideo.c @@ -2879,6 +2879,7 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *p = data; GetBitContext gb; unsigned format; + char format_str[16]; int ret; if (avpkt->size <= 20) @@ -2890,6 +2891,8 @@ static int decode_frame(AVCodecContext *avctx, s->alt = 0; format = AV_RL32(avpkt->data + 16); + av_get_codec_tag_string(format_str, sizeof(format_str), format); + av_log(avctx, AV_LOG_DEBUG, "format: %s\n", format_str); switch (format) { case MKTAG(' ', 'R', 'G', 'B'): avctx->pix_fmt = AV_PIX_FMT_RGB0; |