Commit d0f9cb55 authored by conrad's avatar conrad

vp3: Set pict_type

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22361 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 84423b21
......@@ -1810,6 +1810,7 @@ static int vp3_decode_frame(AVCodecContext *avctx,
return buf_size;
s->current_frame.reference = 3;
s->current_frame.pict_type = s->keyframe ? FF_I_TYPE : FF_P_TYPE;
if (avctx->get_buffer(avctx, &s->current_frame) < 0) {
av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed\n");
goto error;
......@@ -1836,7 +1837,9 @@ static int vp3_decode_frame(AVCodecContext *avctx,
} else {
if (!s->golden_frame.data[0]) {
av_log(s->avctx, AV_LOG_WARNING, "vp3: first frame not a keyframe\n");
s->golden_frame.reference = 3;
s->golden_frame.pict_type = FF_I_TYPE;
if (avctx->get_buffer(avctx, &s->golden_frame) < 0) {
av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed\n");
goto error;
......
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