From ba160f5c8455d984ae51664c1df007e5e6333b5b Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 16 Mar 2014 01:34:48 +0100 Subject: vd_lavc: ridiculous workaround for Libav 9 compatibility This "sometimes" crashed when seeking. The fault apparently lies in libavcodec: the decoder returns an unreferenced frame! This is completely insane, but somehow I'm apparently still expected to work this around. As a reaction, I will drop Libav 9 support in the next commit. (While this commit will go into release/0.3.) --- video/decode/lavc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/decode/lavc.h') diff --git a/video/decode/lavc.h b/video/decode/lavc.h index 71d568aa8a..45d2d9b5cd 100644 --- a/video/decode/lavc.h +++ b/video/decode/lavc.h @@ -98,5 +98,6 @@ void mp_buffer_ref(struct FrameBuffer *buffer); void mp_buffer_unref(struct FrameBuffer *buffer); bool mp_buffer_is_unique(struct FrameBuffer *buffer); void mp_buffer_pool_free(struct FramePool **pool); +bool mp_buffer_check(struct FrameBuffer *buffer); #endif -- cgit v1.2.3