Mercurial > libavcodec.hg
comparison mpeg12.c @ 1328:ca3122e0a3cd libavcodec
2x100l
| author | michaelni |
|---|---|
| date | Fri, 27 Jun 2003 12:58:40 +0000 |
| parents | 6cdd3b8f4fd3 |
| children | 44c94325810c |
comparison
equal
deleted
inserted
replaced
| 1327:854571532c89 | 1328:ca3122e0a3cd |
|---|---|
| 2021 ff_er_frame_end(s); | 2021 ff_er_frame_end(s); |
| 2022 | 2022 |
| 2023 MPV_frame_end(s); | 2023 MPV_frame_end(s); |
| 2024 | 2024 |
| 2025 if (s->pict_type == B_TYPE || s->low_delay) { | 2025 if (s->pict_type == B_TYPE || s->low_delay) { |
| 2026 *pict= *(AVFrame*)&s->current_picture; | 2026 *pict= *(AVFrame*)s->current_picture_ptr; |
| 2027 ff_print_debug_info(s, s->current_picture_ptr); | 2027 ff_print_debug_info(s, s->current_picture_ptr); |
| 2028 } else { | 2028 } else { |
| 2029 s->picture_number++; | 2029 s->picture_number++; |
| 2030 /* latency of 1 frame for I and P frames */ | 2030 /* latency of 1 frame for I and P frames */ |
| 2031 /* XXX: use another variable than picture_number */ | 2031 /* XXX: use another variable than picture_number */ |
| 2032 if (s->last_picture_ptr != NULL) { | 2032 if (s->last_picture_ptr != NULL) { |
| 2033 *pict= *(AVFrame*)&s->last_picture; | 2033 *pict= *(AVFrame*)s->last_picture_ptr; |
| 2034 ff_print_debug_info(s, s->last_picture_ptr); | 2034 ff_print_debug_info(s, s->last_picture_ptr); |
| 2035 } | 2035 } |
| 2036 } | 2036 } |
| 2037 return 1; | 2037 return 1; |
| 2038 } else { | 2038 } else { |
