diff options
author | Ivan Schreter <schreter@gmx.net> | 2009-02-20 16:20:01 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-02-20 16:20:01 +0000 |
commit | ebb61f834a338836590e10de98981a73066e63b7 (patch) | |
tree | 7f6d562bc55171c318fce44c1d06d7820ac9b75d /libavcodec/h264.c | |
parent | abaab07c193345d606f0eb2c7238a6458902ca80 (diff) | |
download | ffmpeg-streaming-ebb61f834a338836590e10de98981a73066e63b7.zip ffmpeg-streaming-ebb61f834a338836590e10de98981a73066e63b7.tar.gz |
Use last decoded SPS as current SPS in order to parse picture timing SEI
correctly. This works around an apparent H.264 standard deficiency.
Patch by Ivan Schreter, schreter gmx net
Originally committed as revision 17471 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 08e215d..c4a26cc 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -7223,6 +7223,7 @@ static inline int decode_seq_parameter_set(H264Context *h){ av_free(h->sps_buffers[sps_id]); h->sps_buffers[sps_id]= sps; + h->sps = *sps; return 0; fail: av_free(sps); |