csrc/wrapper.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
csrc/wrapper.cpp
@@ -84,8 +84,9 @@ auto dec_ctx = in->getCodecContext(); if(bridge_)delete bridge_; scale_w_ = scale_w_ > dec_ctx->width ? dec_ctx->width : scale_w_; scale_h_ = scale_h_ > dec_ctx->height ? dec_ctx->height : scale_h_; scale_w_ = scale_w_ == 0 || scale_w_ > dec_ctx->width ? dec_ctx->width : scale_w_; scale_h_ = scale_h_ == 0 || scale_h_ > dec_ctx->height ? dec_ctx->height : scale_h_; AVPixelFormat pix_fmt = AV_PIX_FMT_BGR24; bridge_ = new cvbridge( dec_ctx->width, dec_ctx->height, dec_ctx->pix_fmt,