We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18f243b commit ea2b1acCopy full SHA for ea2b1ac
common/lwlibav_dec.c
@@ -45,7 +45,13 @@ void lwlibav_flush_buffers
45
lwlibav_decode_handler_t *dhp
46
)
47
{
48
- if (dhp->index_entries_count <= 1)
+ if (!strcmp(dhp->ctx->codec->name, "libdav1d")
49
+ && dhp->ctx->level > 9)
50
+ avcodec_flush_buffers(dhp->ctx);
51
+ else if (dhp->ctx->codec_type == AVMEDIA_TYPE_VIDEO
52
+ && strcmp(dhp->ctx->codec->name, "libdav1d"))
53
54
+ else
55
56
const AVCodecParameters* codecpar = dhp->format->streams[dhp->stream_index]->codecpar;
57
const AVCodec* codec = dhp->ctx->codec;
@@ -67,8 +73,6 @@ void lwlibav_flush_buffers
67
73
dhp->ctx->opaque = app_specific;
68
74
}
69
75
70
- else
71
- avcodec_flush_buffers(dhp->ctx);
72
76
77
dhp->exh.delay_count = 0;
78
0 commit comments