summaryrefslogtreecommitdiff
path: root/decoder.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-03-11 00:04:23 +0100
committerJochen Dolze <vdr@dolze.de>2010-03-11 00:04:23 +0100
commitc0c8c2ec49cc6824d1660a35756806bd885aeb4b (patch)
tree19d6415223cbd0aba8c596ba3105361e302294f2 /decoder.cpp
parentf64031be1c24e2a7dd7a7b02dae47dc2998e651d (diff)
downloadvdr-plugin-markad-c0c8c2ec49cc6824d1660a35756806bd885aeb4b.tar.gz
vdr-plugin-markad-c0c8c2ec49cc6824d1660a35756806bd885aeb4b.tar.bz2
Improved H264 handling, added new logos
Diffstat (limited to 'decoder.cpp')
-rw-r--r--decoder.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/decoder.cpp b/decoder.cpp
index 15d72de..ea0672e 100644
--- a/decoder.cpp
+++ b/decoder.cpp
@@ -342,8 +342,10 @@ bool cMarkAdDecoder::SetVideoInfos(MarkAdContext *maContext,AVCodecContext *Vide
}
maContext->Video.Info.Height=Video_Context->height;
maContext->Video.Info.Width=Video_Context->width;
-
- maContext->Video.Info.Pict_Type=Video_Context->coded_frame->pict_type;
+ if (Video_Context->codec_id!=CODEC_ID_H264)
+ {
+ maContext->Video.Info.Pict_Type=Video_Context->coded_frame->pict_type;
+ }
if (DAR)
{