mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 20:42:49 +08:00 
			
		
		
		
	avcodec/decode: EAGAIN is not fully supported in decode_simple_internal()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		| @@ -457,6 +457,9 @@ FF_ENABLE_DEPRECATION_WARNINGS | ||||
|     if (ret == AVERROR(EAGAIN)) | ||||
|         av_frame_unref(frame); | ||||
|  | ||||
|     // FF_CODEC_CB_TYPE_DECODE decoders must not return AVERROR EAGAIN | ||||
|     // code later will add AVERROR(EAGAIN) to a pointer | ||||
|     av_assert0(consumed != AVERROR(EAGAIN)); | ||||
|     if (consumed < 0) | ||||
|         ret = consumed; | ||||
|     if (consumed >= 0 && avctx->codec->type == AVMEDIA_TYPE_VIDEO) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael Niedermayer
					Michael Niedermayer