mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 18:10:56 +01:00
lavc/qsvenc: return error with zero output
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
This commit is contained in:
parent
a7f24d79b8
commit
e0a5c35270
1 changed files with 1 additions and 1 deletions
|
|
@ -2584,7 +2584,7 @@ int ff_qsv_encode(AVCodecContext *avctx, QSVEncContext *q,
|
|||
pict_type = AV_PICTURE_TYPE_P;
|
||||
else if (qpkt.bs->FrameType & MFX_FRAMETYPE_B || qpkt.bs->FrameType & MFX_FRAMETYPE_xB)
|
||||
pict_type = AV_PICTURE_TYPE_B;
|
||||
else if (qpkt.bs->FrameType == MFX_FRAMETYPE_UNKNOWN) {
|
||||
else if (qpkt.bs->FrameType == MFX_FRAMETYPE_UNKNOWN && qpkt.bs->DataLength) {
|
||||
pict_type = AV_PICTURE_TYPE_NONE;
|
||||
av_log(avctx, AV_LOG_WARNING, "Unknown FrameType, set pict_type to AV_PICTURE_TYPE_NONE.\n");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue