diff h263dec.c @ 885:35d28522a1c5 libavcodec

moving init of some variables (hurry_up,...) to MPV_frame_start()
author michaelni
date Sat, 23 Nov 2002 09:12:57 +0000
parents 1c32039e7215
children 19f5b8b7c6d5
line wrap: on
line diff
--- a/h263dec.c	Fri Nov 22 07:53:06 2002 +0000
+++ b/h263dec.c	Sat Nov 23 09:12:57 2002 +0000
@@ -358,9 +358,6 @@
     printf("bytes=%x %x %x %x\n", buf[0], buf[1], buf[2], buf[3]);
 #endif
 
-    s->hurry_up= avctx->hurry_up;
-    s->error_resilience= avctx->error_resilience;
-
     s->flags= avctx->flags;
 
     *data_size = 0;
@@ -530,9 +527,9 @@
     /* skip b frames if we dont have reference frames */
     if(s->num_available_buffers<2 && s->pict_type==B_TYPE) return get_consumed_bytes(s, buf_size);
     /* skip b frames if we are in a hurry */
-    if(s->hurry_up && s->pict_type==B_TYPE) return get_consumed_bytes(s, buf_size);
+    if(avctx->hurry_up && s->pict_type==B_TYPE) return get_consumed_bytes(s, buf_size);
     /* skip everything if we are in a hurry>=5 */
-    if(s->hurry_up>=5) return get_consumed_bytes(s, buf_size);
+    if(avctx->hurry_up>=5) return get_consumed_bytes(s, buf_size);
     
     if(s->next_p_frame_damaged){
         if(s->pict_type==B_TYPE)