comparison cavs.c @ 6517:48759bfbd073 libavcodec

Apply 'cold' attribute to init/uninit functions in libavcodec
author zuxy
date Fri, 21 Mar 2008 03:11:20 +0000
parents c16a59ef6a86
children 33f51dd2491f
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
666 h->col_mv = av_malloc( h->mb_width*h->mb_height*4*sizeof(vector_t)); 666 h->col_mv = av_malloc( h->mb_width*h->mb_height*4*sizeof(vector_t));
667 h->col_type_base = av_malloc(h->mb_width*h->mb_height); 667 h->col_type_base = av_malloc(h->mb_width*h->mb_height);
668 h->block = av_mallocz(64*sizeof(DCTELEM)); 668 h->block = av_mallocz(64*sizeof(DCTELEM));
669 } 669 }
670 670
671 int ff_cavs_init(AVCodecContext *avctx) { 671 av_cold int ff_cavs_init(AVCodecContext *avctx) {
672 AVSContext *h = avctx->priv_data; 672 AVSContext *h = avctx->priv_data;
673 MpegEncContext * const s = &h->s; 673 MpegEncContext * const s = &h->s;
674 674
675 MPV_decode_defaults(s); 675 MPV_decode_defaults(s);
676 s->avctx = avctx; 676 s->avctx = avctx;
697 h->mv[ 7] = ff_cavs_un_mv; 697 h->mv[ 7] = ff_cavs_un_mv;
698 h->mv[19] = ff_cavs_un_mv; 698 h->mv[19] = ff_cavs_un_mv;
699 return 0; 699 return 0;
700 } 700 }
701 701
702 int ff_cavs_end(AVCodecContext *avctx) { 702 av_cold int ff_cavs_end(AVCodecContext *avctx) {
703 AVSContext *h = avctx->priv_data; 703 AVSContext *h = avctx->priv_data;
704 704
705 av_free(h->top_qp); 705 av_free(h->top_qp);
706 av_free(h->top_mv[0]); 706 av_free(h->top_mv[0]);
707 av_free(h->top_mv[1]); 707 av_free(h->top_mv[1]);