Re: [PATCH 2/6] gui: Use new lavc decode API for PNG decode.

Reimar Döffinger <[email protected]>
Newsgroups gmane.comp.video.mplayer.devel
Message-ID <[email protected]>
On 21 January 2021 13:14:49 CET, "Ingo Brückl" <[email protected]> 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. 
_______________________________________________
MPlayer-dev-eng mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.