Mercurial > libavcodec.hg
comparison mpegvideo.c @ 9007:043574c5c153 libavcodec
Add missing av_cold in static init/close functions.
Patch by Daniel Verkamp daniel at drv dot nu.
author | stefano |
---|---|
date | Sun, 22 Feb 2009 13:48:55 +0000 |
parents | b595a8a59967 |
children | 90c99bda19f5 |
comparison
equal
deleted
inserted
replaced
9006:37ac731fe32c | 9007:043574c5c153 |
---|---|
105 | 105 |
106 return p+4; | 106 return p+4; |
107 } | 107 } |
108 | 108 |
109 /* init common dct for both encoder and decoder */ | 109 /* init common dct for both encoder and decoder */ |
110 int ff_dct_common_init(MpegEncContext *s) | 110 av_cold int ff_dct_common_init(MpegEncContext *s) |
111 { | 111 { |
112 s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_c; | 112 s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_c; |
113 s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_c; | 113 s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_c; |
114 s->dct_unquantize_mpeg1_intra = dct_unquantize_mpeg1_intra_c; | 114 s->dct_unquantize_mpeg1_intra = dct_unquantize_mpeg1_intra_c; |
115 s->dct_unquantize_mpeg1_inter = dct_unquantize_mpeg1_inter_c; | 115 s->dct_unquantize_mpeg1_inter = dct_unquantize_mpeg1_inter_c; |
394 | 394 |
395 /** | 395 /** |
396 * init common structure for both encoder and decoder. | 396 * init common structure for both encoder and decoder. |
397 * this assumes that some variables like width/height are already set | 397 * this assumes that some variables like width/height are already set |
398 */ | 398 */ |
399 int MPV_common_init(MpegEncContext *s) | 399 av_cold int MPV_common_init(MpegEncContext *s) |
400 { | 400 { |
401 int y_size, c_size, yc_size, i, mb_array_size, mv_table_size, x, y, threads; | 401 int y_size, c_size, yc_size, i, mb_array_size, mv_table_size, x, y, threads; |
402 | 402 |
403 s->mb_height = (s->height + 15) / 16; | 403 s->mb_height = (s->height + 15) / 16; |
404 | 404 |