Commit 2ac3283e authored by cehoyos's avatar cehoyos

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17471 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 65e3e24e
...@@ -7223,6 +7223,7 @@ static inline int decode_seq_parameter_set(H264Context *h){ ...@@ -7223,6 +7223,7 @@ static inline int decode_seq_parameter_set(H264Context *h){
av_free(h->sps_buffers[sps_id]); av_free(h->sps_buffers[sps_id]);
h->sps_buffers[sps_id]= sps; h->sps_buffers[sps_id]= sps;
h->sps = *sps;
return 0; return 0;
fail: fail:
av_free(sps); av_free(sps);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment