Commit 3b86f09b authored by michael's avatar michael

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6388 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 280c83a1
...@@ -556,7 +556,7 @@ void ff_clean_mpeg4_qscales(MpegEncContext *s){ ...@@ -556,7 +556,7 @@ void ff_clean_mpeg4_qscales(MpegEncContext *s){
#define tab_size ((signed)(sizeof(s->direct_scale_mv[0])/sizeof(int16_t))) #define tab_size ((signed)(sizeof(s->direct_scale_mv[0])/sizeof(int16_t)))
#define tab_bias (tab_size/2) #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; int i;
for(i=0; i<tab_size; i++){ for(i=0; i<tab_size; i++){
s->direct_scale_mv[0][i] = (i-tab_bias)*s->pb_time/s->pp_time; s->direct_scale_mv[0][i] = (i-tab_bias)*s->pb_time/s->pp_time;
......
...@@ -473,6 +473,7 @@ static int rv20_decode_picture_header(MpegEncContext *s) ...@@ -473,6 +473,7 @@ static int rv20_decode_picture_header(MpegEncContext *s)
av_log(s->avctx, AV_LOG_DEBUG, "messed up order, possible from seeking? skipping current b frame\n"); av_log(s->avctx, AV_LOG_DEBUG, "messed up order, possible from seeking? skipping current b frame\n");
return FRAME_SKIPPED; 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); // printf("%d %d %d %d %d\n", seq, (int)s->time, (int)s->last_non_b_time, s->pp_time, s->pb_time);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment