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);