comparison truemotion1.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 20a72aa8179b
children 5df0c730234d
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
459 s->flags & FLAG_INTERPOLATED ? " INTERPOL" : ""); 459 s->flags & FLAG_INTERPOLATED ? " INTERPOL" : "");
460 460
461 return header.header_size; 461 return header.header_size;
462 } 462 }
463 463
464 static int truemotion1_decode_init(AVCodecContext *avctx) 464 static av_cold int truemotion1_decode_init(AVCodecContext *avctx)
465 { 465 {
466 TrueMotion1Context *s = avctx->priv_data; 466 TrueMotion1Context *s = avctx->priv_data;
467 467
468 s->avctx = avctx; 468 s->avctx = avctx;
469 469
875 875
876 /* report that the buffer was completely consumed */ 876 /* report that the buffer was completely consumed */
877 return buf_size; 877 return buf_size;
878 } 878 }
879 879
880 static int truemotion1_decode_end(AVCodecContext *avctx) 880 static av_cold int truemotion1_decode_end(AVCodecContext *avctx)
881 { 881 {
882 TrueMotion1Context *s = avctx->priv_data; 882 TrueMotion1Context *s = avctx->priv_data;
883 883
884 if (s->frame.data[0]) 884 if (s->frame.data[0])
885 avctx->release_buffer(avctx, &s->frame); 885 avctx->release_buffer(avctx, &s->frame);