提交 79486246 编写于 作者: Z Zhang Rui

ijksdl: setup width/height in managed_frame

上级 46619c03
......@@ -76,6 +76,9 @@ static AVFrame *opaque_setup_frame(SDL_VoutOverlay_Opaque* opaque, enum AVPixelF
avcodec_get_frame_defaults(managed_frame);
avcodec_get_frame_defaults(linked_frame);
AVPicture *pic = (AVPicture *) managed_frame;
managed_frame->format = format;
managed_frame->width = width;
managed_frame->height = height;
avpicture_fill(pic, NULL, format, width, height);
opaque->managed_frame = managed_frame;
opaque->linked_frame = linked_frame;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册