diff options
Diffstat (limited to 'filters')
-rw-r--r-- | filters/f_decoder_wrapper.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/filters/f_decoder_wrapper.c b/filters/f_decoder_wrapper.c index 0faaa72bd9..0edca5c83d 100644 --- a/filters/f_decoder_wrapper.c +++ b/filters/f_decoder_wrapper.c @@ -580,6 +580,11 @@ static void read_frame(struct priv *p) if (!frame.type) return; + if (p->header->attached_picture && frame.type == MP_FRAME_VIDEO) { + p->decoded_coverart = mp_frame_ref(frame); + p->coverart_returned = 1; + } + if (p->public.attempt_framedrops) { int dropped = MPMAX(0, p->packets_without_output - 1); p->public.attempt_framedrops = @@ -615,11 +620,6 @@ static void read_frame(struct priv *p) return; } - if (p->header->attached_picture && frame.type == MP_FRAME_VIDEO) { - p->decoded_coverart = mp_frame_ref(frame); - p->coverart_returned = 1; - } - mp_pin_in_write(pin, frame); } |