From 89ddb72aa1adb2e393c593cc6a96c04ca9867b32 Mon Sep 17 00:00:00 2001
From: Loren Merritt <lorenm@u.washington.edu>
Date: Sun, 30 Apr 2006 19:31:45 +0000
Subject: [PATCH] warn on interlaced streams

Originally committed as revision 5337 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/h264.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index f49ed767947..2f3ba29fdde 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -7283,6 +7283,8 @@ static inline int decode_seq_parameter_set(H264Context *h){
         return -1;
 
     sps->frame_mbs_only_flag= get_bits1(&s->gb);
+    if(!sps->frame_mbs_only_flag)
+        av_log(h->s.avctx, AV_LOG_ERROR, "interlacing is not supported, picture will probably be garbage\n");
     if(!sps->frame_mbs_only_flag)
         sps->mb_aff= get_bits1(&s->gb);
     else
-- 
GitLab