avcodec/sheervideo: print internal format in debug log

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2016-09-18 18:21:29 +02:00
parent 260de8a264
commit 6216b4780b
1 changed files with 3 additions and 0 deletions

View File

@ -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;