Mercurial > libavcodec.hg
comparison dv.c @ 4352:0ee71c12734e libavcodec
* Fixing a bug with incorrect bits set in AAUX source pack
* Making DV codec release a buffer on exit
* Flagging accepted pix_fmts for DV encoder
author | romansh |
---|---|
date | Mon, 15 Jan 2007 07:41:28 +0000 |
parents | d6f83e2f8804 |
children | 9bf957e669f0 |
comparison
equal
deleted
inserted
replaced
4351:1e251b54cba2 | 4352:0ee71c12734e |
---|---|
1227 } | 1227 } |
1228 #endif | 1228 #endif |
1229 | 1229 |
1230 static int dvvideo_close(AVCodecContext *c) | 1230 static int dvvideo_close(AVCodecContext *c) |
1231 { | 1231 { |
1232 DVVideoContext *s = c->priv_data; | |
1233 | |
1234 if(s->picture.data[0]) | |
1235 c->release_buffer(c, &s->picture); | |
1232 | 1236 |
1233 return 0; | 1237 return 0; |
1234 } | 1238 } |
1235 | 1239 |
1236 | 1240 |
1240 CODEC_TYPE_VIDEO, | 1244 CODEC_TYPE_VIDEO, |
1241 CODEC_ID_DVVIDEO, | 1245 CODEC_ID_DVVIDEO, |
1242 sizeof(DVVideoContext), | 1246 sizeof(DVVideoContext), |
1243 dvvideo_init, | 1247 dvvideo_init, |
1244 dvvideo_encode_frame, | 1248 dvvideo_encode_frame, |
1245 dvvideo_close, | 1249 .pix_fmts = (enum PixelFormat[]) {PIX_FMT_YUV411P, PIX_FMT_YUV422P, PIX_FMT_YUV420P, -1}, |
1246 NULL, | |
1247 CODEC_CAP_DR1, | |
1248 NULL | |
1249 }; | 1250 }; |
1250 #endif // CONFIG_DVVIDEO_ENCODER | 1251 #endif // CONFIG_DVVIDEO_ENCODER |
1251 | 1252 |
1252 #ifdef CONFIG_DVVIDEO_DECODER | 1253 #ifdef CONFIG_DVVIDEO_DECODER |
1253 AVCodec dvvideo_decoder = { | 1254 AVCodec dvvideo_decoder = { |