summaryrefslogtreecommitdiff
path: root/libavcodec/parser.c
diff options
context:
space:
mode:
authorIvan Schreter <schreter@gmx.net>2009-02-18 23:46:05 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-02-18 23:46:05 +0000
commit6363af44da7471ba8f67ce8204b3b853a7d3cb30 (patch)
tree4fbdd61244fde1bab378d5eabf4807a23d75d7d9 /libavcodec/parser.c
parent2ea89d9274bf27419239c05182c23d30c402cb22 (diff)
downloadffmpeg-6363af44da7471ba8f67ce8204b3b853a7d3cb30.tar.gz
Add key_frame to AVCodecParserContext, used in libavformat.
Initialized to -1 in parser.c for backward compatibility. Patch by Ivan Schreter, schreter gmx net Originally committed as revision 17442 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/parser.c')
-rw-r--r--libavcodec/parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/parser.c b/libavcodec/parser.c
index 6a801ec0da..db9b2363fe 100644
--- a/libavcodec/parser.c
+++ b/libavcodec/parser.c
@@ -73,6 +73,7 @@ AVCodecParserContext *av_parser_init(int codec_id)
}
s->fetch_timestamp=1;
s->pict_type = FF_I_TYPE;
+ s->key_frame = -1;
return s;
}