diff options
author | Johns <johns98@gmx.net> | 2013-07-24 20:06:05 +0200 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2013-07-24 20:06:05 +0200 |
commit | 93357fb1cd6095988721052185d70161d1fc2e79 (patch) | |
tree | 1c93f38e00bcb1619849e521867881fed2f295c2 /softhddev.c | |
parent | c646007db1f68944b09d645636465b0ef973abec (diff) | |
download | vdr-plugin-softhddevice-93357fb1cd6095988721052185d70161d1fc2e79.tar.gz vdr-plugin-softhddevice-93357fb1cd6095988721052185d70161d1fc2e79.tar.bz2 |
Add compile time selectable h264 trickspeed workaround.
Diffstat (limited to 'softhddev.c')
-rw-r--r-- | softhddev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/softhddev.c b/softhddev.c index 1eefc82..efbbed8 100644 --- a/softhddev.c +++ b/softhddev.c @@ -2224,7 +2224,7 @@ int PlayVideo3(VideoStream * stream, const uint8_t * data, int size) && check[1] == 0x09 && !check[3] && !check[4]) { // old PES HDTV recording z == 2 -> stronger check! if (stream->CodecID == AV_CODEC_ID_H264) { -#if 0 +#ifdef H264_EOS_TRICKSPEED // this should improve ffwd+frew, but produce crash in ffmpeg // with some streams if (stream->TrickSpeed && pts != (int64_t) AV_NOPTS_VALUE) { @@ -2235,8 +2235,8 @@ int PlayVideo3(VideoStream * stream, const uint8_t * data, int size) // 1-5=SLICE 6=SEI 7=SPS 8=PPS // NAL SPS sequence parameter set if ((check[7] & 0x1F) == 0x07) { - VideoNextPacket(AV_CODEC_ID_H264); - VideoEnqueue(AV_NOPTS_VALUE, seq_end_h264, + VideoNextPacket(stream, AV_CODEC_ID_H264); + VideoEnqueue(stream, AV_NOPTS_VALUE, seq_end_h264, sizeof(seq_end_h264)); } } |