changeset 6933:74f920fb6c01 libavcodec

Warn about unimplemented H264 feature.
author cehoyos
date Thu, 29 May 2008 23:16:12 +0000
parents ea72fccbfc3b
children ac6f00bed029
files h264.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Thu May 29 20:09:45 2008 +0000
+++ b/h264.c	Thu May 29 23:16:12 2008 +0000
@@ -4112,6 +4112,8 @@
     if(h->slice_type == FF_P_TYPE || h->slice_type == FF_SP_TYPE || h->slice_type == FF_B_TYPE){
         if(h->slice_type == FF_B_TYPE){
             h->direct_spatial_mv_pred= get_bits1(&s->gb);
+            if(FIELD_PICTURE && h->direct_spatial_mv_pred)
+                av_log(h->s.avctx, AV_LOG_ERROR, "PAFF + spatial direct mode is not implemented\n");
         }
         num_ref_idx_active_override_flag= get_bits1(&s->gb);