mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-09-27 05:09:41 +08:00
fixup! lavc/rkmppdec: refactor RKMPP decoders and extend codecs
fix when decoding only a single packet containing an IDR frame. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
@@ -815,6 +815,12 @@ static int rkmpp_get_frame(AVCodecContext *avctx, AVFrame *frame, int timeout)
|
|||||||
ret = AVERROR_EXTERNAL;
|
ret = AVERROR_EXTERNAL;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* no more new pkts after EOS, retry to get frame */
|
||||||
|
if (r->draining) {
|
||||||
|
mpp_frame_deinit(&mpp_frame);
|
||||||
|
return rkmpp_get_frame(avctx, frame, MPP_TIMEOUT_MAX);
|
||||||
|
}
|
||||||
goto exit;
|
goto exit;
|
||||||
} else {
|
} else {
|
||||||
av_log(avctx, AV_LOG_DEBUG, "Received a frame\n");
|
av_log(avctx, AV_LOG_DEBUG, "Received a frame\n");
|
||||||
|
Reference in New Issue
Block a user