summaryrefslogtreecommitdiff
path: root/libavformat/oggdec.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-02-18 21:19:58 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-02-18 21:35:49 +0100
commit030e96fe5566d9dd412540d258f05f907a86651f (patch)
treed999f5882ffabec95f778d065401f226631a75fc /libavformat/oggdec.c
parent8688e6acba81c411c645a1f07f4ca18502726ded (diff)
oggdec: improve warning message.
Print whether it was a keyframe or a non-keyframe that was incorrectly marked as the other. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r--libavformat/oggdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index e32ab69cf1..39f99e5f65 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -582,8 +582,9 @@ static void ogg_validate_keyframe(AVFormatContext *s, int idx, int pstart, int p
struct ogg_stream *os = ogg->streams + idx;
if (psize && s->streams[idx]->codec->codec_id == CODEC_ID_THEORA) {
if (!!(os->pflags & AV_PKT_FLAG_KEY) != !(os->buf[pstart] & 0x40)) {
- av_log(s, AV_LOG_WARNING, "Broken file, keyframes not correctly marked.\n");
os->pflags ^= AV_PKT_FLAG_KEY;
+ av_log(s, AV_LOG_WARNING, "Broken file, %skeyframe not correctly marked.\n",
+ (os->pflags & AV_PKT_FLAG_KEY) ? "" : "non-");
}
}
}