mpegvideo: don't pretend the first frame is always a key frame
authorWolfram Gloger <wmglo@dent.med.uni-muenchen.de>
Fri, 16 Mar 2012 20:17:00 +0000 (21:17 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 16 Mar 2012 20:27:23 +0000 (21:27 +0100)
commitf8353d5fdab24ecfb0989c9751007592f83543da
tree580ad92bea86a9bbc373ad42e28f5c4cecf77c63
parent6f9803e5e02c557e1003cface9f3084a7e1e43e4
mpegvideo: don't pretend the first frame is always a key frame

Signed-off-by: Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
Modify the parser initialization so that parsers can
set pict_type themselves.  Use this in the mpegvideo parser
so that initial frames are not unconditionally I frames.
I have had this in my tree for several years.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegvideo_parser.c
libavcodec/parser.c
tests/ref/seek/lavf_mpg