summaryrefslogtreecommitdiff
path: root/decoder.cpp
diff options
context:
space:
mode:
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)
{