summaryrefslogtreecommitdiff
path: root/video.h
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-01-23 21:54:56 +0100
committerJohns <johns98@gmx.net>2013-01-23 21:54:56 +0100
commit04286fb2ad742f33ce6abd055a108483d2a2d16c (patch)
tree8cc25e1741474e5697a1308802585d606164ef8b /video.h
parentcd82ee8e4a01e29cc9aa616ba9a68c5c59e11d89 (diff)
downloadvdr-plugin-softhddevice-04286fb2ad742f33ce6abd055a108483d2a2d16c.tar.gz
vdr-plugin-softhddevice-04286fb2ad742f33ce6abd055a108483d2a2d16c.tar.bz2
Add video compatibility with >=ffmpeg 1.1.
Diffstat (limited to 'video.h')
-rw-r--r--video.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/video.h b/video.h
index 28a26ec..e8cf330 100644
--- a/video.h
+++ b/video.h
@@ -51,13 +51,13 @@ extern VideoHwDecoder *VideoNewHwDecoder(VideoStream *);
/// Deallocate video hardware decoder.
extern void VideoDelHwDecoder(VideoHwDecoder *);
+#ifdef LIBAVCODEC_VERSION
/// Get and allocate a video hardware surface.
-extern unsigned VideoGetSurface(VideoHwDecoder *);
+extern unsigned VideoGetSurface(VideoHwDecoder *, const AVCodecContext *);
/// Release a video hardware surface
extern void VideoReleaseSurface(VideoHwDecoder *, unsigned);
-#ifdef LIBAVCODEC_VERSION
/// Callback to negotiate the PixelFormat.
extern enum PixelFormat Video_get_format(VideoHwDecoder *, AVCodecContext *,
const enum PixelFormat *);