[Ffmpeg-cvslog] r6388 - in trunk/libavcodec: h263.c rv10.c

michael subversion
Sat Sep 30 01:34:43 CEST 2006


Author: michael
Date: Sat Sep 30 01:34:42 2006
New Revision: 6388

Modified:
   trunk/libavcodec/h263.c
   trunk/libavcodec/rv10.c

Log:
fix rv20 b frames (broke since r5264 Mon Apr 3 07:52:24 2006 UTC 2x faster ff_mpeg4_set_direct_mv)


Modified: trunk/libavcodec/h263.c
==============================================================================
--- trunk/libavcodec/h263.c	(original)
+++ trunk/libavcodec/h263.c	Sat Sep 30 01:34:42 2006
@@ -556,7 +556,7 @@
 #define tab_size ((signed)(sizeof(s->direct_scale_mv[0])/sizeof(int16_t)))
 #define tab_bias (tab_size/2)
 
-static void ff_mpeg4_init_direct_mv(MpegEncContext *s){
+void ff_mpeg4_init_direct_mv(MpegEncContext *s){
     int i;
     for(i=0; i<tab_size; i++){
         s->direct_scale_mv[0][i] = (i-tab_bias)*s->pb_time/s->pp_time;

Modified: trunk/libavcodec/rv10.c
==============================================================================
--- trunk/libavcodec/rv10.c	(original)
+++ trunk/libavcodec/rv10.c	Sat Sep 30 01:34:42 2006
@@ -473,6 +473,7 @@
                 av_log(s->avctx, AV_LOG_DEBUG, "messed up order, possible from seeking? skipping current b frame\n");
                 return FRAME_SKIPPED;
             }
+            ff_mpeg4_init_direct_mv(s);
         }
     }
 //    printf("%d %d %d %d %d\n", seq, (int)s->time, (int)s->last_non_b_time, s->pp_time, s->pb_time);




More information about the ffmpeg-cvslog mailing list