diff options
author | Edward Hervey <bilboed@gmail.com> | 2005-08-11 01:28:04 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-08-11 01:28:04 +0000 |
commit | 856170f75297556cc2ed80b536596392893e9e8c (patch) | |
tree | cd06cc82ba5076cd26a595c398fe5712fb650cc6 /libavcodec/dv.c | |
parent | cf1cb7a8db6b911cf07a62ef0ba9ada89d70f3ca (diff) | |
download | ffmpeg-856170f75297556cc2ed80b536596392893e9e8c.tar.gz |
DV video encoder/decoder doesn't set keyframe and picture type properties patch by (Edward Hervey:bilboed,gmail com)
Originally committed as revision 4503 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r-- | libavcodec/dv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index bc750bcbc6..d2739d33b7 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -897,6 +897,8 @@ static int dvvideo_decode_frame(AVCodecContext *avctx, 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 @@ static int dvvideo_encode_frame(AVCodecContext *c, uint8_t *buf, int buf_size, 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, |