Commit 72dadaa9 authored by Kostya Shishkov's avatar Kostya Shishkov

utvideo: mark output picture as keyframe.

Spotted by Антон.
parent cc965300
......@@ -492,6 +492,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
break;
}
c->pic.key_frame = 1;
c->pic.pict_type = AV_PICTURE_TYPE_I;
*data_size = sizeof(AVFrame);
*(AVFrame*)data = c->pic;
......
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