mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-15 05:11:37 +08:00
avcodec: remove FF_API_FLAG_TRUNCATED
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:

committed by
Anton Khirnov

parent
5f9e848e68
commit
3ceffe7839
@@ -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 */
|
||||
|
Reference in New Issue
Block a user