summaryrefslogtreecommitdiffstats
path: root/video/decode/lavc.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-16 01:34:48 +0100
committerwm4 <wm4@nowhere>2014-03-30 17:50:11 +0200
commit1685d198b9f9b2a3edb8d204a6f29f3c827cd599 (patch)
tree89c893ef563bf9f7607bb77c117474cd8cd0b5f6 /video/decode/lavc.h
parent1e2d28f56707886d1a40470502f18c079444aeb9 (diff)
downloadmpv-1685d198b9f9b2a3edb8d204a6f29f3c827cd599.tar.bz2
mpv-1685d198b9f9b2a3edb8d204a6f29f3c827cd599.tar.xz
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.)
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r--video/decode/lavc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h
index 867488de95..305c0b551d 100644
--- a/video/decode/lavc.h
+++ b/video/decode/lavc.h
@@ -91,5 +91,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