avcodec: remove FF_API_FLAG_TRUNCATED

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2023-01-09 11:22:39 -03:00
committed by Anton Khirnov
parent 5f9e848e68
commit 3ceffe7839
19 changed files with 1 additions and 293 deletions

View File

@@ -427,11 +427,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
if (!got_frame)
av_frame_unref(frame);
#if FF_API_FLAG_TRUNCATED
if (ret >= 0 && avctx->codec->type == AVMEDIA_TYPE_VIDEO && !(avctx->flags & AV_CODEC_FLAG_TRUNCATED))
#else
if (ret >= 0 && avctx->codec->type == AVMEDIA_TYPE_VIDEO)
#endif
ret = pkt->size;
/* do not stop draining when actual_got_frame != 0 or ret < 0 */