Mercurial > libavcodec.hg
comparison parser.c @ 2389:429c1eedeee9 libavcodec
fix timestamp prediction for low_delay mpeg streams
| author | michael |
|---|---|
| date | Tue, 14 Dec 2004 12:04:45 +0000 |
| parents | 8d1983254e28 |
| children | 06aafb585f69 |
comparison
equal
deleted
inserted
replaced
| 2388:55a72627a2c5 | 2389:429c1eedeee9 |
|---|---|
| 323 horiz_size_ext = ((buf[1] & 1) << 1) | (buf[2] >> 7); | 323 horiz_size_ext = ((buf[1] & 1) << 1) | (buf[2] >> 7); |
| 324 vert_size_ext = (buf[2] >> 5) & 3; | 324 vert_size_ext = (buf[2] >> 5) & 3; |
| 325 frame_rate_ext_n = (buf[5] >> 5) & 3; | 325 frame_rate_ext_n = (buf[5] >> 5) & 3; |
| 326 frame_rate_ext_d = (buf[5] & 0x1f); | 326 frame_rate_ext_d = (buf[5] & 0x1f); |
| 327 pc->progressive_sequence = buf[1] & (1 << 3); | 327 pc->progressive_sequence = buf[1] & (1 << 3); |
| 328 avctx->has_b_frames= buf[5] >> 7; | |
| 328 | 329 |
| 329 pc->width |=(horiz_size_ext << 12); | 330 pc->width |=(horiz_size_ext << 12); |
| 330 pc->height |=( vert_size_ext << 12); | 331 pc->height |=( vert_size_ext << 12); |
| 331 avcodec_set_dimensions(avctx, pc->width, pc->height); | 332 avcodec_set_dimensions(avctx, pc->width, pc->height); |
| 332 avctx->frame_rate = pc->frame_rate * (frame_rate_ext_n + 1); | 333 avctx->frame_rate = pc->frame_rate * (frame_rate_ext_n + 1); |
