Explicitly initialize decoder sink_count
The zero-initialization relied on the fact that the decoder instance is static.
This commit is contained in:
parent
4c31911df2
commit
6fd7e89da1
1 changed files with 2 additions and 0 deletions
|
@ -140,6 +140,8 @@ decoder_packet_sink_push(struct sc_packet_sink *sink, const AVPacket *packet) {
|
||||||
|
|
||||||
void
|
void
|
||||||
decoder_init(struct decoder *decoder) {
|
decoder_init(struct decoder *decoder) {
|
||||||
|
decoder->sink_count = 0;
|
||||||
|
|
||||||
static const struct sc_packet_sink_ops ops = {
|
static const struct sc_packet_sink_ops ops = {
|
||||||
.open = decoder_packet_sink_open,
|
.open = decoder_packet_sink_open,
|
||||||
.close = decoder_packet_sink_close,
|
.close = decoder_packet_sink_close,
|
||||||
|
|
Loading…
Reference in a new issue