Commit d2429d89 authored by michael's avatar michael

DV video encoder/decoder doesn't set keyframe and picture type properties...

DV video encoder/decoder doesn't set keyframe and picture type properties patch by (Edward Hervey:bilboed,gmail com)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4503 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5cf6196f
...@@ -897,6 +897,8 @@ static int dvvideo_decode_frame(AVCodecContext *avctx, ...@@ -897,6 +897,8 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
avctx->release_buffer(avctx, &s->picture); avctx->release_buffer(avctx, &s->picture);
s->picture.reference = 0; s->picture.reference = 0;
s->picture.key_frame = 1;
s->picture.pict_type = FF_I_TYPE;
avctx->pix_fmt = s->sys->pix_fmt; avctx->pix_fmt = s->sys->pix_fmt;
avctx->width = s->sys->width; avctx->width = s->sys->width;
avctx->height = s->sys->height; avctx->height = s->sys->height;
...@@ -933,6 +935,8 @@ static int dvvideo_encode_frame(AVCodecContext *c, uint8_t *buf, int buf_size, ...@@ -933,6 +935,8 @@ static int dvvideo_encode_frame(AVCodecContext *c, uint8_t *buf, int buf_size,
c->pix_fmt = s->sys->pix_fmt; c->pix_fmt = s->sys->pix_fmt;
s->picture = *((AVFrame *)data); s->picture = *((AVFrame *)data);
s->picture.key_frame = 1;
s->picture.pict_type = FF_I_TYPE;
s->buf = buf; s->buf = buf;
c->execute(c, dv_encode_mt, (void**)&dv_anchor[0], NULL, c->execute(c, dv_encode_mt, (void**)&dv_anchor[0], NULL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment