summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-01-30 23:09:53 +0100
committerJohns <johns98@gmx.net>2012-01-30 23:09:53 +0100
commit364cc04736aae34ad7f9e2685e9d54dde87e46ca (patch)
treea21c733ba430cb6edb805b613755655f56ff0ef3 /video.c
parentec4a899bb86389a6a85f471f164bea794b25c054 (diff)
downloadvdr-plugin-softhddevice-364cc04736aae34ad7f9e2685e9d54dde87e46ca.tar.gz
vdr-plugin-softhddevice-364cc04736aae34ad7f9e2685e9d54dde87e46ca.tar.bz2
Fix bug: Only black picture with VA-API hw decoder.
Diffstat (limited to 'video.c')
-rw-r--r--video.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/video.c b/video.c
index 39043be..d10ee86 100644
--- a/video.c
+++ b/video.c
@@ -1576,7 +1576,9 @@ static void VaapiCleanup(VaapiDecoder * decoder)
VaapiDestroyDeinterlaceImages(decoder);
}
- decoder->FrameCounter = 0;
+ decoder->SurfaceField = 1;
+
+ //decoder->FrameCounter = 0;
decoder->PTS = AV_NOPTS_VALUE;
VideoDeltaPTS = 0;
}