diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-12-02 13:40:01 +0300 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-12-02 13:40:01 +0300 |
commit | f151f5415a1904bf26cf49555fd9b24e1e00ff02 (patch) | |
tree | 75fc378423a2b312825a102b9f6f832a46ba98f9 /libavformat/qcp.c | |
parent | 7f6515e49100d5dcb9971d05b0693e61e72024ad (diff) |
lavf/qcp: Print unknown GUID on error.
Diffstat (limited to 'libavformat/qcp.c')
-rw-r--r-- | libavformat/qcp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/qcp.c b/libavformat/qcp.c index 4d42197b19..ccfa047529 100644 --- a/libavformat/qcp.c +++ b/libavformat/qcp.c @@ -30,6 +30,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" #include "avformat.h" +#include "riff.h" typedef struct { uint32_t data_size; ///< size of data chunk @@ -106,7 +107,8 @@ static int qcp_read_header(AVFormatContext *s) } else if (!memcmp(buf, guid_smv, 16)) { st->codec->codec_id = AV_CODEC_ID_SMV; } else { - av_log(s, AV_LOG_ERROR, "Unknown codec GUID.\n"); + av_log(s, AV_LOG_ERROR, "Unknown codec GUID "FF_PRI_GUID".\n", + FF_ARG_GUID(buf)); return AVERROR_INVALIDDATA; } avio_skip(pb, 2 + 80); // codec-version + codec-name |