Commit ce0bc09e authored by Anton Khirnov's avatar Anton Khirnov

hevc: do not change the VPS if its contents are the same

This is the same as is done for SPS.
parent 7693ba0a
......@@ -407,8 +407,14 @@ int ff_hevc_decode_nal_vps(HEVCContext *s)
get_bits1(gb); /* vps_extension_flag */
if (s->vps_list[vps_id] &&
!memcmp(s->vps_list[vps_id]->data, vps_buf->data, vps_buf->size)) {
} else {
s->vps_list[vps_id] = vps_buf;
return 0;
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