diff options
author | Johns <johns98@gmx.net> | 2012-02-01 16:50:48 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-01 16:50:48 +0100 |
commit | 27e9a88e2ff02c9a84ca009c52d091062dbe5530 (patch) | |
tree | caf09e2a16ffa87d049fb88e861a12e90c0f25ba /softhddev.c | |
parent | 33e9c71aea853f1f5bb1ccc55394ecbaa4a01b18 (diff) | |
download | vdr-plugin-softhddevice-27e9a88e2ff02c9a84ca009c52d091062dbe5530.tar.gz vdr-plugin-softhddevice-27e9a88e2ff02c9a84ca009c52d091062dbe5530.tar.bz2 |
Video updates and bug fix.
Check if surface is ready in VaapiGetSurface.
Set PTS/DTS only in the first split video packet.
Add support for 4:3 output modes.
Quicker auto-crop after channel switch.
Add auto-crop support for Intel VA-API backend.
Fix bug: Auto-Crop logo skip didn't use displayed width.
Diffstat (limited to 'softhddev.c')
-rw-r--r-- | softhddev.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/softhddev.c b/softhddev.c index 5cc5f34..8dadd84 100644 --- a/softhddev.c +++ b/softhddev.c @@ -507,7 +507,7 @@ void FixPacketForFFMpeg(VideoDecoder * MyVideoDecoder, AVPacket * avpkt) first = 1; while (n > 4) { - // scan for picture header + // scan for picture header 0x00000100 if (!p[0] && !p[1] && p[2] == 0x01 && !p[3]) { if (first) { first = 0; @@ -518,6 +518,9 @@ void FixPacketForFFMpeg(VideoDecoder * MyVideoDecoder, AVPacket * avpkt) // packet has already an picture header tmp->size = p - tmp->data; CodecVideoDecode(MyVideoDecoder, tmp); + // time-stamp only valid for first packet + tmp->pts = AV_NOPTS_VALUE; + tmp->dts = AV_NOPTS_VALUE; tmp->data = p; tmp->size = n; } |