Commit 41dde62d authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'ce0bc09e'

* commit 'ce0bc09e':
  hevc: do not change the VPS if its contents are the same

Conflicts:
	libavcodec/hevc_ps.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents d386a523 ce0bc09e
......@@ -458,8 +458,14 @@ int ff_hevc_decode_nal_vps(HEVCContext *s)
goto err;
}
av_buffer_unref(&s->vps_list[vps_id]);
s->vps_list[vps_id] = vps_buf;
if (s->vps_list[vps_id] &&
!memcmp(s->vps_list[vps_id]->data, vps_buf->data, vps_buf->size)) {
av_buffer_unref(&vps_buf);
} else {
av_buffer_unref(&s->vps_list[vps_id]);
s->vps_list[vps_id] = vps_buf;
}
return 0;
err:
......
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