Don't try to transfer image when there is no image available

This commit is contained in:
Isaac Connor 2021-01-28 10:22:14 -05:00
parent f32e546b94
commit 4bd813d980
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ int ZMPacket::decode(AVCodecContext *ctx) {
} else
#endif
#endif
{
if ( ret > 0 ) {
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->sw_pix_fmt)