Mercurial > libavcodec.hg
comparison tiertexseqv.c @ 7206:3092ae791531 libavcodec
Remove av_cold attribute on decode_frame and add it to decode_end
to match other codecs.
patch by Gregory Montoir, cyx users sourceforge net
author | diego |
---|---|
date | Sun, 06 Jul 2008 09:58:23 +0000 |
parents | e943e1409077 |
children | 655f242bb525 |
comparison
equal
deleted
inserted
replaced
7205:68528efbc91f | 7206:3092ae791531 |
---|---|
183 seq->frame.data[0] = NULL; | 183 seq->frame.data[0] = NULL; |
184 | 184 |
185 return 0; | 185 return 0; |
186 } | 186 } |
187 | 187 |
188 static av_cold int seqvideo_decode_frame(AVCodecContext *avctx, | 188 static int seqvideo_decode_frame(AVCodecContext *avctx, |
189 void *data, int *data_size, | 189 void *data, int *data_size, |
190 const uint8_t *buf, int buf_size) | 190 const uint8_t *buf, int buf_size) |
191 { | 191 { |
192 | 192 |
193 SeqVideoContext *seq = avctx->priv_data; | 193 SeqVideoContext *seq = avctx->priv_data; |
205 *(AVFrame *)data = seq->frame; | 205 *(AVFrame *)data = seq->frame; |
206 | 206 |
207 return buf_size; | 207 return buf_size; |
208 } | 208 } |
209 | 209 |
210 static int seqvideo_decode_end(AVCodecContext *avctx) | 210 static av_cold int seqvideo_decode_end(AVCodecContext *avctx) |
211 { | 211 { |
212 SeqVideoContext *seq = avctx->priv_data; | 212 SeqVideoContext *seq = avctx->priv_data; |
213 | 213 |
214 if (seq->frame.data[0]) | 214 if (seq->frame.data[0]) |
215 avctx->release_buffer(avctx, &seq->frame); | 215 avctx->release_buffer(avctx, &seq->frame); |