Commit f151f541 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/qcp: Print unknown GUID on error.

parent 7f6515e4
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "libavutil/channel_layout.h" #include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "avformat.h" #include "avformat.h"
#include "riff.h"
typedef struct { typedef struct {
uint32_t data_size; ///< size of data chunk uint32_t data_size; ///< size of data chunk
...@@ -106,7 +107,8 @@ static int qcp_read_header(AVFormatContext *s) ...@@ -106,7 +107,8 @@ static int qcp_read_header(AVFormatContext *s)
} else if (!memcmp(buf, guid_smv, 16)) { } else if (!memcmp(buf, guid_smv, 16)) {
st->codec->codec_id = AV_CODEC_ID_SMV; st->codec->codec_id = AV_CODEC_ID_SMV;
} else { } 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; return AVERROR_INVALIDDATA;
} }
avio_skip(pb, 2 + 80); // codec-version + codec-name avio_skip(pb, 2 + 80); // codec-version + codec-name
......
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