Mercurial > libavcodec.hg
comparison dvbsubdec.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 | dfdff1ca78a7 |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
336 /* Should already be null */ | 336 /* Should already be null */ |
337 if (ctx->object_list) | 337 if (ctx->object_list) |
338 av_log(0, AV_LOG_ERROR, "Memory deallocation error!\n"); | 338 av_log(0, AV_LOG_ERROR, "Memory deallocation error!\n"); |
339 } | 339 } |
340 | 340 |
341 static int dvbsub_init_decoder(AVCodecContext *avctx) | 341 static av_cold int dvbsub_init_decoder(AVCodecContext *avctx) |
342 { | 342 { |
343 int i, r, g, b, a = 0; | 343 int i, r, g, b, a = 0; |
344 DVBSubContext *ctx = (DVBSubContext*) avctx->priv_data; | 344 DVBSubContext *ctx = (DVBSubContext*) avctx->priv_data; |
345 | 345 |
346 memset(avctx->priv_data, 0, sizeof(DVBSubContext)); | 346 memset(avctx->priv_data, 0, sizeof(DVBSubContext)); |
409 } | 409 } |
410 | 410 |
411 return 0; | 411 return 0; |
412 } | 412 } |
413 | 413 |
414 static int dvbsub_close_decoder(AVCodecContext *avctx) | 414 static av_cold int dvbsub_close_decoder(AVCodecContext *avctx) |
415 { | 415 { |
416 DVBSubContext *ctx = (DVBSubContext*) avctx->priv_data; | 416 DVBSubContext *ctx = (DVBSubContext*) avctx->priv_data; |
417 DVBSubRegionDisplay *display; | 417 DVBSubRegionDisplay *display; |
418 | 418 |
419 delete_state(ctx); | 419 delete_state(ctx); |