aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2011-08-16 13:29:47 +0200
committerNicolas George <nicolas.george@normalesup.org>2011-08-22 12:13:27 +0200
commitaeba058340ec47a10049c9cefb7ca8d500047b31 (patch)
tree7f2111a3b1f0d5c234109ba70068eec4ba8c1843
parent355ac7ff6cba314390f5fb2bf4680b29cd02a9a8 (diff)
downloadffmpeg-aeba058340ec47a10049c9cefb7ca8d500047b31.tar.gz
lavf: warn when a parser is needed and not found.
-rw-r--r--libavformat/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index ab36a156b4..ef1de94d77 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1246,6 +1246,9 @@ static int read_frame_internal(AVFormatContext *s, AVPacket *pkt)
if (st->need_parsing && !st->parser && !(s->flags & AVFMT_FLAG_NOPARSE)) {
st->parser = av_parser_init(st->codec->codec_id);
if (!st->parser) {
+ av_log(s, AV_LOG_WARNING, "parser not found for codec "
+ "%s, packets or times may be invalid.\n",
+ avcodec_get_name(st->codec->codec_id));
/* no parser available: just output the raw packets */
st->need_parsing = AVSTREAM_PARSE_NONE;
}else if(st->need_parsing == AVSTREAM_PARSE_HEADERS){