comparison rv10.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 493dc59d469a
children 5b3acf9fd50a
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
520 assert(s->pict_type != FF_B_TYPE || !s->low_delay); 520 assert(s->pict_type != FF_B_TYPE || !s->low_delay);
521 521
522 return s->mb_width*s->mb_height - mb_pos; 522 return s->mb_width*s->mb_height - mb_pos;
523 } 523 }
524 524
525 static int rv10_decode_init(AVCodecContext *avctx) 525 static av_cold int rv10_decode_init(AVCodecContext *avctx)
526 { 526 {
527 MpegEncContext *s = avctx->priv_data; 527 MpegEncContext *s = avctx->priv_data;
528 static int done=0; 528 static int done=0;
529 529
530 MPV_decode_defaults(s); 530 MPV_decode_defaults(s);
586 } 586 }
587 587
588 return 0; 588 return 0;
589 } 589 }
590 590
591 static int rv10_decode_end(AVCodecContext *avctx) 591 static av_cold int rv10_decode_end(AVCodecContext *avctx)
592 { 592 {
593 MpegEncContext *s = avctx->priv_data; 593 MpegEncContext *s = avctx->priv_data;
594 594
595 MPV_common_end(s); 595 MPV_common_end(s);
596 return 0; 596 return 0;