changeset 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 1e251b54cba2
children d9cd0e5255d7
files dv.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dv.c	Sun Jan 14 23:50:06 2007 +0000
+++ b/dv.c	Mon Jan 15 07:41:28 2007 +0000
@@ -1229,6 +1229,10 @@
 
 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 @@
     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