]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
remove assertion that use external definitions
authoriive <iive@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 14 Feb 2009 16:53:42 +0000 (16:53 +0000)
committeriive <iive@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 14 Feb 2009 16:53:42 +0000 (16:53 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17241 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/mpegvideo_xvmc.c

index 78f8fd98bfa2932d57b5565a4fc105dfd30e077d..c04eb06854db7bde8fd73bc550e5acbc8d0ab3b5 100644 (file)
@@ -93,7 +93,6 @@ int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx)
         case  FF_B_TYPE:
             next = (struct xvmc_render_state*)s->next_picture.data[2];
             assert(next!=NULL);
-            assert(next->state & MP_XVMC_STATE_PREDICTION);
             if (next == NULL)
                 return -1;
             if (next->magic != MP_XVMC_RENDER_MAGIC)
@@ -106,7 +105,6 @@ int XVMC_field_start(MpegEncContext*s, AVCodecContext *avctx)
                 last = render;//predict second field from the first
             if (last->magic != MP_XVMC_RENDER_MAGIC)
                 return -1;
-            assert(last->state & MP_XVMC_STATE_PREDICTION);
             render->p_past_surface = last->p_surface;
             return 0;
     }