From bec96a7286bc415dd737c8c8f430f0176999e720 Mon Sep 17 00:00:00 2001 From: Clément Bœsch Date: Mon, 27 Mar 2017 09:45:35 +0200 Subject: lavf: use av_fourcc2str() where appropriate --- libavformat/dxa.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libavformat/dxa.c') diff --git a/libavformat/dxa.c b/libavformat/dxa.c index 162838c135..50193907be 100644 --- a/libavformat/dxa.c +++ b/libavformat/dxa.c @@ -171,11 +171,13 @@ static int dxa_read_packet(AVFormatContext *s, AVPacket *pkt) } avio_seek(s->pb, c->vidpos, SEEK_SET); while(!avio_feof(s->pb) && c->frames){ + uint32_t tag; if ((ret = avio_read(s->pb, buf, 4)) != 4) { av_log(s, AV_LOG_ERROR, "failed reading chunk type\n"); return ret < 0 ? ret : AVERROR_INVALIDDATA; } - switch(AV_RL32(buf)){ + tag = AV_RL32(buf); + switch (tag) { case MKTAG('N', 'U', 'L', 'L'): if(av_new_packet(pkt, 4 + pal_size) < 0) return AVERROR(ENOMEM); @@ -217,7 +219,7 @@ static int dxa_read_packet(AVFormatContext *s, AVPacket *pkt) c->readvid = 0; return 0; default: - av_log(s, AV_LOG_ERROR, "Unknown tag %c%c%c%c\n", buf[0], buf[1], buf[2], buf[3]); + av_log(s, AV_LOG_ERROR, "Unknown tag %s\n", av_fourcc2str(tag)); return AVERROR_INVALIDDATA; } } -- cgit v1.2.3