Mercurial > libavcodec.hg
comparison wmv2dec.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 | a4104482ceef |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
455 } | 455 } |
456 | 456 |
457 return 0; | 457 return 0; |
458 } | 458 } |
459 | 459 |
460 static int wmv2_decode_init(AVCodecContext *avctx){ | 460 static av_cold int wmv2_decode_init(AVCodecContext *avctx){ |
461 Wmv2Context * const w= avctx->priv_data; | 461 Wmv2Context * const w= avctx->priv_data; |
462 | 462 |
463 if(avctx->idct_algo==FF_IDCT_AUTO){ | 463 if(avctx->idct_algo==FF_IDCT_AUTO){ |
464 avctx->idct_algo=FF_IDCT_WMV2; | 464 avctx->idct_algo=FF_IDCT_WMV2; |
465 } | 465 } |
472 ff_intrax8_common_init(&w->x8,&w->s); | 472 ff_intrax8_common_init(&w->x8,&w->s); |
473 | 473 |
474 return 0; | 474 return 0; |
475 } | 475 } |
476 | 476 |
477 static int wmv2_decode_end(AVCodecContext *avctx) | 477 static av_cold int wmv2_decode_end(AVCodecContext *avctx) |
478 { | 478 { |
479 Wmv2Context *w = avctx->priv_data; | 479 Wmv2Context *w = avctx->priv_data; |
480 | 480 |
481 ff_intrax8_common_end(&w->x8); | 481 ff_intrax8_common_end(&w->x8); |
482 return ff_h263_decode_end(avctx); | 482 return ff_h263_decode_end(avctx); |