Re: [FFmpeg-devel] [PATCH] avcodec/encode: Avoid check whose result is known in advance

2022-06-30 Thread Andreas Rheinhardt
Andreas Rheinhardt: > encode_send_frame_internal() is always only called if > the buffer packet is empty and except when we are dealing > with an audio codec that does not allow variable frame size > it stays that way until a call to av_frame_ref() at the end > of encode_send_frame_internal(). In c

[FFmpeg-devel] [PATCH] avcodec/encode: Avoid check whose result is known in advance

2022-06-28 Thread Andreas Rheinhardt
encode_send_frame_internal() is always only called if the buffer packet is empty and except when we are dealing with an audio codec that does not allow variable frame size it stays that way until a call to av_frame_ref() at the end of encode_send_frame_internal(). In case we are dealing with the sm