Don't try to transfer image when there is no image available
This commit is contained in:
parent
f32e546b94
commit
4bd813d980
|
@ -225,7 +225,7 @@ int ZMPacket::decode(AVCodecContext *ctx) {
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
{
|
if ( ret > 0 ) {
|
||||||
Debug(2, "Same pix format %s so not hwtransferring. sw_pix_fmt is %s",
|
Debug(2, "Same pix format %s so not hwtransferring. sw_pix_fmt is %s",
|
||||||
av_get_pix_fmt_name(ctx->pix_fmt),
|
av_get_pix_fmt_name(ctx->pix_fmt),
|
||||||
av_get_pix_fmt_name(ctx->sw_pix_fmt)
|
av_get_pix_fmt_name(ctx->sw_pix_fmt)
|
||||||
|
|
Loading…
Reference in New Issue