提交 409b075c 编写于 作者: Z zhenghanchao 提交者: Xinzheng Zhang

ijkvideotoolbox: fix live error when change resolution

Signed-off-by: NXinzheng Zhang <zhangxzheng@gmail.com>
上级 d671617b
......@@ -789,9 +789,7 @@ static int decode_video(VideoToolBoxContext* context, AVCodecContext *avctx, AVP
if (ret < 0) {
avcodec_free_context(&new_avctx);
return ret;
}
if (got_picture) {
} else {
if (context->codecpar->width != new_avctx->width &&
context->codecpar->height != new_avctx->height) {
avcodec_parameters_from_context(context->codecpar, new_avctx);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册