forked from FFmpeg/FFmpeg
lavf/apngdec: print currently unsupported in-stream tags in a more readable form
Also use length and not stream position Reviewed-by: Benoit Fouet <benoit.fouet@free.fr> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
78093cf849
commit
305b03097d
1 changed files with 6 additions and 1 deletions
|
@ -372,9 +372,14 @@ static int apng_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||
return ret;
|
||||
return 0;
|
||||
default:
|
||||
avpriv_request_sample(s, "In-stream tag=%#08X len=%"PRId64"", tag, avio_tell(pb));
|
||||
{
|
||||
char tag_buf[5];
|
||||
|
||||
av_get_codec_tag_string(tag_buf, sizeof(tag_buf), tag);
|
||||
avpriv_request_sample(s, "In-stream tag=%s (0x%08X) len=%"PRIu32, tag_buf, tag, len);
|
||||
avio_skip(pb, len + 4);
|
||||
}
|
||||
}
|
||||
|
||||
/* Handle the unsupported yet cases */
|
||||
return AVERROR_PATCHWELCOME;
|
||||
|
|
Loading…
Add table
Reference in a new issue