comparison libmpcodecs/vd_libmpeg2.c @ 7957:31fd09cc9ba2

passing picture_type (might be usefull for postprocessing)
author michael
date Tue, 29 Oct 2002 11:26:26 +0000
parents 77076fb29637
children b465ba5897a3
comparison
equal deleted inserted replaced
7956:2d04cdfd7186 7957:31fd09cc9ba2
288 // if(code==0x1FF){ 288 // if(code==0x1FF){
289 ret=parse_chunk(sh, 0xFF, NULL, framedrop); // send 'end of frame' 289 ret=parse_chunk(sh, 0xFF, NULL, framedrop); // send 'end of frame'
290 if(ret) mpi=ret; 290 if(ret) mpi=ret;
291 // } 291 // }
292 292
293 if(mpi){
294 static int last_non_b_type= 0;
295
296 if(picture->picture_coding_type == B_TYPE)
297 mpi->pict_type= B_TYPE;
298 else{
299 mpi->pict_type= last_non_b_type;
300 last_non_b_type= picture->picture_coding_type;
301 }
302 }
303
293 return mpi; 304 return mpi;
294 } 305 }