summaryrefslogtreecommitdiffstats
path: root/demux/demux.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux.c')
-rw-r--r--demux/demux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demux/demux.c b/demux/demux.c
index eaf1062cb2..775dbfa845 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -678,9 +678,9 @@ int ds_fill_buffer(demux_stream_t *ds)
break; // EOF
}
- if (demux->type == DEMUXER_TYPE_LAVF ||
- demux->type == DEMUXER_TYPE_MATROSKA)
- {
+ struct sh_video *sh_video = demux->video->sh;
+
+ if (sh_video && sh_video->gsh->attached_picture) {
if (demux->audio)
ds->fill_count += demux->audio->packs - apacks;
if (demux->video && demux->video->packs > vpacks)