Mercurial > libavcodec.hg
comparison mpegvideo.c @ 1556:5ebb4ae753d3 libavcodec
112 bytes smaller MpegEncContext
author | michael |
---|---|
date | Wed, 22 Oct 2003 15:36:46 +0000 |
parents | 27073c5532dc |
children | 5d53c03186a1 |
comparison
equal
deleted
inserted
replaced
1555:27073c5532dc | 1556:5ebb4ae753d3 |
---|---|
445 | 445 |
446 CHECKED_ALLOCZ(s->q_intra_matrix, 64*32 * sizeof(int)) | 446 CHECKED_ALLOCZ(s->q_intra_matrix, 64*32 * sizeof(int)) |
447 CHECKED_ALLOCZ(s->q_inter_matrix, 64*32 * sizeof(int)) | 447 CHECKED_ALLOCZ(s->q_inter_matrix, 64*32 * sizeof(int)) |
448 CHECKED_ALLOCZ(s->q_intra_matrix16, 64*32*2 * sizeof(uint16_t)) | 448 CHECKED_ALLOCZ(s->q_intra_matrix16, 64*32*2 * sizeof(uint16_t)) |
449 CHECKED_ALLOCZ(s->q_inter_matrix16, 64*32*2 * sizeof(uint16_t)) | 449 CHECKED_ALLOCZ(s->q_inter_matrix16, 64*32*2 * sizeof(uint16_t)) |
450 CHECKED_ALLOCZ(s->input_picture, MAX_PICTURE_COUNT * sizeof(Picture*)) | |
451 CHECKED_ALLOCZ(s->reordered_input_picture, MAX_PICTURE_COUNT * sizeof(Picture*)) | |
450 } | 452 } |
451 CHECKED_ALLOCZ(s->blocks, 64*6*2 * sizeof(DCTELEM)) | 453 CHECKED_ALLOCZ(s->blocks, 64*6*2 * sizeof(DCTELEM)) |
452 | 454 |
453 CHECKED_ALLOCZ(s->picture, MAX_PICTURE_COUNT * sizeof(Picture)) | 455 CHECKED_ALLOCZ(s->picture, MAX_PICTURE_COUNT * sizeof(Picture)) |
454 | 456 |
569 av_freep(&s->q_intra_matrix); | 571 av_freep(&s->q_intra_matrix); |
570 av_freep(&s->q_inter_matrix); | 572 av_freep(&s->q_inter_matrix); |
571 av_freep(&s->q_intra_matrix16); | 573 av_freep(&s->q_intra_matrix16); |
572 av_freep(&s->q_inter_matrix16); | 574 av_freep(&s->q_inter_matrix16); |
573 av_freep(&s->blocks); | 575 av_freep(&s->blocks); |
576 av_freep(&s->input_picture); | |
577 av_freep(&s->reordered_input_picture); | |
574 | 578 |
575 for(i=0; i<MAX_PICTURE_COUNT; i++){ | 579 for(i=0; i<MAX_PICTURE_COUNT; i++){ |
576 free_picture(s, &s->picture[i]); | 580 free_picture(s, &s->picture[i]); |
577 } | 581 } |
578 av_freep(&s->picture); | 582 av_freep(&s->picture); |