comparison mpeg12.c @ 1706:3ba5c493db6f libavcodec

motion vector vissualization improvements patch by (Wolfgang Hesseler <qv at multimediaware dot com>)
author michael
date Tue, 30 Dec 2003 02:12:12 +0000
parents f3287b5d8d9f
children dea5b2946999
comparison
equal deleted inserted replaced
1705:954593137d37 1706:3ba5c493db6f
2303 2303
2304 MPV_frame_end(s); 2304 MPV_frame_end(s);
2305 2305
2306 if (s->pict_type == B_TYPE || s->low_delay) { 2306 if (s->pict_type == B_TYPE || s->low_delay) {
2307 *pict= *(AVFrame*)s->current_picture_ptr; 2307 *pict= *(AVFrame*)s->current_picture_ptr;
2308 ff_print_debug_info(s, s->current_picture_ptr); 2308 ff_print_debug_info(s, pict);
2309 } else { 2309 } else {
2310 s->picture_number++; 2310 s->picture_number++;
2311 /* latency of 1 frame for I and P frames */ 2311 /* latency of 1 frame for I and P frames */
2312 /* XXX: use another variable than picture_number */ 2312 /* XXX: use another variable than picture_number */
2313 if (s->last_picture_ptr != NULL) { 2313 if (s->last_picture_ptr != NULL) {
2314 *pict= *(AVFrame*)s->last_picture_ptr; 2314 *pict= *(AVFrame*)s->last_picture_ptr;
2315 ff_print_debug_info(s, s->last_picture_ptr); 2315 ff_print_debug_info(s, pict);
2316 } 2316 }
2317 } 2317 }
2318 2318
2319 return 1; 2319 return 1;
2320 } else { 2320 } else {