changeset 3285:d061e145af94 libavcodec

warn on interlaced streams
author lorenm
date Sun, 30 Apr 2006 19:31:45 +0000
parents a224d9752912
children 30d412952107
files h264.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Sat Apr 29 00:43:15 2006 +0000
+++ b/h264.c	Sun Apr 30 19:31:45 2006 +0000
@@ -7284,6 +7284,8 @@
 
     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
         sps->mb_aff= 0;