comparison libmpcodecs/vd_libmpeg2.c @ 5613:481592004427

draw_slices with framedrop fixed
author arpi
date Sun, 14 Apr 2002 01:21:13 +0000
parents 113ed5725b47
children 0ff1b9ab7afc
comparison
equal deleted inserted replaced
5612:027568c0f982 5613:481592004427
152 // set current_frame pointer: 152 // set current_frame pointer:
153 if (!picture->second_field){ 153 if (!picture->second_field){
154 mp_image_t* mpi; 154 mp_image_t* mpi;
155 int flags; 155 int flags;
156 if (picture->picture_coding_type == B_TYPE){ 156 if (picture->picture_coding_type == B_TYPE){
157 flags=vd_use_slices?MP_IMGFLAG_DRAW_CALLBACK:0; 157 flags=(!framedrop && vd_use_slices)?MP_IMGFLAG_DRAW_CALLBACK:0;
158 picture->display_frame= 158 picture->display_frame=
159 picture->current_frame = picture->temp_frame; 159 picture->current_frame = picture->temp_frame;
160 } else { 160 } else {
161 flags=MP_IMGFLAG_PRESERVE|MP_IMGFLAG_READABLE; 161 flags=MP_IMGFLAG_PRESERVE|MP_IMGFLAG_READABLE;
162 picture->current_frame = picture->forward_reference_frame; 162 picture->current_frame = picture->forward_reference_frame;