diff options
author | Roman Shaposhnik <roman@shaposhnik.org> | 2007-01-15 07:41:28 +0000 |
---|---|---|
committer | Roman Shaposhnik <roman@shaposhnik.org> | 2007-01-15 07:41:28 +0000 |
commit | e950141a58f35fc29664b4681d9d78c0773b1f34 (patch) | |
tree | 68917e0551fab0ebbbf17147098d42459c49650f /libavcodec/dv.c | |
parent | 16ab894ecb71a413dc3bb2ba020abb21e2e01b8b (diff) | |
download | ffmpeg-streaming-e950141a58f35fc29664b4681d9d78c0773b1f34.zip ffmpeg-streaming-e950141a58f35fc29664b4681d9d78c0773b1f34.tar.gz |
* 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
Originally committed as revision 7531 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r-- | libavcodec/dv.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 803d350..505c88d 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -1229,6 +1229,10 @@ static int dvvideo_encode_frame(AVCodecContext *c, uint8_t *buf, int buf_size, static int dvvideo_close(AVCodecContext *c) { + DVVideoContext *s = c->priv_data; + + if(s->picture.data[0]) + c->release_buffer(c, &s->picture); return 0; } @@ -1242,10 +1246,7 @@ AVCodec dvvideo_encoder = { sizeof(DVVideoContext), dvvideo_init, dvvideo_encode_frame, - dvvideo_close, - NULL, - CODEC_CAP_DR1, - NULL + .pix_fmts = (enum PixelFormat[]) {PIX_FMT_YUV411P, PIX_FMT_YUV422P, PIX_FMT_YUV420P, -1}, }; #endif // CONFIG_DVVIDEO_ENCODER |