changeset 2822:fdedaa2e6da4 libavcodec

DV video encoder/decoder doesn't set keyframe and picture type properties patch by (Edward Hervey:bilboed,gmail com)
author michael
date Thu, 11 Aug 2005 01:28:04 +0000
parents 0f428b024677
children 6bf98adb22a1
files dv.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dv.c	Sat Aug 06 09:46:04 2005 +0000
+++ b/dv.c	Thu Aug 11 01:28:04 2005 +0000
@@ -897,6 +897,8 @@
         avctx->release_buffer(avctx, &s->picture);
     
     s->picture.reference = 0;
+    s->picture.key_frame = 1;
+    s->picture.pict_type = FF_I_TYPE;
     avctx->pix_fmt = s->sys->pix_fmt;
     avctx->width = s->sys->width;
     avctx->height = s->sys->height;
@@ -933,6 +935,8 @@
 
     c->pix_fmt = s->sys->pix_fmt;
     s->picture = *((AVFrame *)data);
+    s->picture.key_frame = 1;
+    s->picture.pict_type = FF_I_TYPE;
 
     s->buf = buf;
     c->execute(c, dv_encode_mt, (void**)&dv_anchor[0], NULL,