OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
355ac7f
)
lavf: warn when a parser is needed and not found.
author
Nicolas George
<nicolas.george@normalesup.org>
Tue, 16 Aug 2011 11:29:47 +0000
(13:29 +0200)
committer
Nicolas George
<nicolas.george@normalesup.org>
Mon, 22 Aug 2011 10:13:27 +0000
(12:13 +0200)
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
ab36a15
..
ef1de94
100644
(file)
--- 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){