[MPlayer-dev-eng] [PATCH 2/6] gui: Use new lavc decode API for PNG decode.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Thu Jan 21 23:44:14 EET 2021
On 21 January 2021 13:14:49 CET, "Ingo Brückl" <ib at wupperonline.de> wrote:
>Alexander Strasser wrote on Sat, 9 Jan 2021 01:11:53 +0100:
>
>>> - avcodec_decode_video2(avctx, frame, &decode_ok, &pkt);
>>> + avcodec_send_packet(avctx, &pkt);
>>> + decode_ok = avcodec_receive_frame(avctx, frame);
>
>> I may be gravely misunderstanding things, but I would argue a
>
>> avcodec_send_packet(avctx, NULL);
>
>> once before trying to receive, would better match the protocol
>> of the send/receive API. It may never make a difference here,
>> but that's not my point.
>
>Summarizing all information, I favor the following patch:
Assuming it's tested, please commit.
More information about the MPlayer-dev-eng
mailing list