Browse Source

qsvenc: do not re-execute encoding on all positive status codes

It should only be done for DEVICE_BUSY/IN_EXECUTION
tags/n3.3
Anton Khirnov 9 years ago
parent
commit
0956fd4606
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/qsvenc.c

+ 1
- 1
libavcodec/qsvenc.c View File

@@ -972,7 +972,7 @@ static int encode_frame(AVCodecContext *avctx, QSVEncContext *q,
ret = MFXVideoENCODE_EncodeFrameAsync(q->session, NULL, surf, bs, sync);
if (ret == MFX_WRN_DEVICE_BUSY)
av_usleep(1);
} while (ret > 0);
} while (ret == MFX_WRN_DEVICE_BUSY || ret == MFX_WRN_IN_EXECUTION);

if (ret < 0) {
av_packet_unref(&new_pkt);


Loading…
Cancel
Save