From ebb61f834a338836590e10de98981a73066e63b7 Mon Sep 17 00:00:00 2001 From: Ivan Schreter Date: Fri, 20 Feb 2009 16:20:01 +0000 Subject: [PATCH] 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 --- libavcodec/h264.c | 1 + 1 file changed, 1 insertion(+) 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);