s->pps = NULL;
s->vps = NULL;
- av_buffer_unref(&s->current_sps);
-
av_freep(&s->sh.entry_point_offset);
av_freep(&s->sh.offset);
av_freep(&s->sh.size);
}
}
- av_buffer_unref(&s->current_sps);
- if (s0->current_sps) {
- s->current_sps = av_buffer_ref(s0->current_sps);
- if (!s->current_sps)
- return AVERROR(ENOMEM);
- }
-
if (s->sps != s0->sps)
if ((ret = set_sps(s, s0->sps, src->pix_fmt)) < 0)
return ret;