comparison mpeg12.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 1144fc79b912
children 3f6b656f9f01
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
1197 int save_width, save_height; 1197 int save_width, save_height;
1198 AVRational frame_rate_ext; ///< MPEG-2 specific framerate modificator 1198 AVRational frame_rate_ext; ///< MPEG-2 specific framerate modificator
1199 1199
1200 } Mpeg1Context; 1200 } Mpeg1Context;
1201 1201
1202 static int mpeg_decode_init(AVCodecContext *avctx) 1202 static av_cold int mpeg_decode_init(AVCodecContext *avctx)
1203 { 1203 {
1204 Mpeg1Context *s = avctx->priv_data; 1204 Mpeg1Context *s = avctx->priv_data;
1205 MpegEncContext *s2 = &s->mpeg_enc_ctx; 1205 MpegEncContext *s2 = &s->mpeg_enc_ctx;
1206 int i; 1206 int i;
1207 1207
2457 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY, 2457 CODEC_CAP_DRAW_HORIZ_BAND | CODEC_CAP_DR1 | CODEC_CAP_TRUNCATED | CODEC_CAP_DELAY,
2458 .flush= ff_mpeg_flush, 2458 .flush= ff_mpeg_flush,
2459 }; 2459 };
2460 2460
2461 #ifdef HAVE_XVMC 2461 #ifdef HAVE_XVMC
2462 static int mpeg_mc_decode_init(AVCodecContext *avctx){ 2462 static av_cold int mpeg_mc_decode_init(AVCodecContext *avctx){
2463 Mpeg1Context *s; 2463 Mpeg1Context *s;
2464 2464
2465 if( avctx->thread_count > 1) 2465 if( avctx->thread_count > 1)
2466 return -1; 2466 return -1;
2467 if( !(avctx->slice_flags & SLICE_FLAG_CODED_ORDER) ) 2467 if( !(avctx->slice_flags & SLICE_FLAG_CODED_ORDER) )