comparison interplayvideo.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 1c99abd63afb
children a4104482ceef
comparison
equal deleted inserted replaced
6516:dbb902bb2347 6517:48759bfbd073
833 av_log(s->avctx, AV_LOG_ERROR, " Interplay video: decode finished with %td bytes left over\n", 833 av_log(s->avctx, AV_LOG_ERROR, " Interplay video: decode finished with %td bytes left over\n",
834 s->stream_end - s->stream_ptr); 834 s->stream_end - s->stream_ptr);
835 } 835 }
836 } 836 }
837 837
838 static int ipvideo_decode_init(AVCodecContext *avctx) 838 static av_cold int ipvideo_decode_init(AVCodecContext *avctx)
839 { 839 {
840 IpvideoContext *s = avctx->priv_data; 840 IpvideoContext *s = avctx->priv_data;
841 841
842 s->avctx = avctx; 842 s->avctx = avctx;
843 843
917 917
918 /* report that the buffer was completely consumed */ 918 /* report that the buffer was completely consumed */
919 return buf_size; 919 return buf_size;
920 } 920 }
921 921
922 static int ipvideo_decode_end(AVCodecContext *avctx) 922 static av_cold int ipvideo_decode_end(AVCodecContext *avctx)
923 { 923 {
924 IpvideoContext *s = avctx->priv_data; 924 IpvideoContext *s = avctx->priv_data;
925 925
926 /* release the last frame */ 926 /* release the last frame */
927 if (s->last_frame.data[0]) 927 if (s->last_frame.data[0])