summaryrefslogtreecommitdiff
path: root/codec.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-03-06 10:30:27 +0100
committerJohns <johns98@gmx.net>2013-03-06 10:30:27 +0100
commit7db63875d0198c92e0ab554147ad78f88623b173 (patch)
tree9d4b92771653b3d8f7c5b41b3de198a2660363cd /codec.c
parent637c04655a61525c624bbb2c2e10e264fe6ba55e (diff)
downloadvdr-plugin-softhddevice-7db63875d0198c92e0ab554147ad78f88623b173.tar.gz
vdr-plugin-softhddevice-7db63875d0198c92e0ab554147ad78f88623b173.tar.bz2
Adds optional only complete mpeg packets support.
Diffstat (limited to 'codec.c')
-rw-r--r--codec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/codec.c b/codec.c
index 042dcf0..6e1e942 100644
--- a/codec.c
+++ b/codec.c
@@ -441,8 +441,11 @@ void CodecVideoOpen(VideoDecoder * decoder, const char *name, int codec_id)
}
if (video_codec->capabilities & CODEC_CAP_TRUNCATED) {
Debug(3, "codec: video can use truncated packets\n");
+#ifndef USE_MPEG_COMPLETE
// we send incomplete frames, for old PES recordings
+ // this breaks the decoder for some stations
decoder->VideoCtx->flags |= CODEC_FLAG_TRUNCATED;
+#endif
}
// FIXME: own memory management for video frames.
if (video_codec->capabilities & CODEC_CAP_DR1) {