Commit 6216b478 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/sheervideo: print internal format in debug log

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 260de8a2
...@@ -2879,6 +2879,7 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -2879,6 +2879,7 @@ static int decode_frame(AVCodecContext *avctx,
AVFrame *p = data; AVFrame *p = data;
GetBitContext gb; GetBitContext gb;
unsigned format; unsigned format;
char format_str[16];
int ret; int ret;
if (avpkt->size <= 20) if (avpkt->size <= 20)
...@@ -2890,6 +2891,8 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -2890,6 +2891,8 @@ static int decode_frame(AVCodecContext *avctx,
s->alt = 0; s->alt = 0;
format = AV_RL32(avpkt->data + 16); 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) { switch (format) {
case MKTAG(' ', 'R', 'G', 'B'): case MKTAG(' ', 'R', 'G', 'B'):
avctx->pix_fmt = AV_PIX_FMT_RGB0; avctx->pix_fmt = AV_PIX_FMT_RGB0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment