summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorIvan Schreter <schreter@gmx.net>2009-02-20 16:20:01 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-02-20 16:20:01 +0000
commitebb61f834a338836590e10de98981a73066e63b7 (patch)
tree7f6d562bc55171c318fce44c1d06d7820ac9b75d /libavcodec/h264.c
parentabaab07c193345d606f0eb2c7238a6458902ca80 (diff)
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 08e215d6e3..c4a26cc5a4 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);