Re: [FFmpeg-devel] [PATCH 2/3] doc/examples/demuxing_decoding: convert to new decoding API

2020-04-11 Thread James Almer
On 4/11/2020 2:59 PM, Anton Khirnov wrote: > Quoting James Almer (2020-04-11 19:46:03) >> On 4/11/2020 12:06 PM, Anton Khirnov wrote: >> >> Instead of this, it might be better to call receive_frame() one time >> after each call to send_packet(), regardless of the latter consuming the >> packet or

Re: [FFmpeg-devel] [PATCH 2/3] doc/examples/demuxing_decoding: convert to new decoding API

2020-04-11 Thread Anton Khirnov
Quoting James Almer (2020-04-11 19:46:03) > On 4/11/2020 12:06 PM, Anton Khirnov wrote: > > Instead of this, it might be better to call receive_frame() one time > after each call to send_packet(), regardless of the latter consuming the > packet or not. If it doesn't, then you just keep it around

Re: [FFmpeg-devel] [PATCH 2/3] doc/examples/demuxing_decoding: convert to new decoding API

2020-04-11 Thread James Almer
On 4/11/2020 12:06 PM, Anton Khirnov wrote: > --- > doc/examples/demuxing_decoding.c | 177 --- > 1 file changed, 91 insertions(+), 86 deletions(-) > > diff --git a/doc/examples/demuxing_decoding.c > b/doc/examples/demuxing_decoding.c > index 9bde927321..803e35d25c

[FFmpeg-devel] [PATCH 2/3] doc/examples/demuxing_decoding: convert to new decoding API

2020-04-11 Thread Anton Khirnov
--- doc/examples/demuxing_decoding.c | 177 --- 1 file changed, 91 insertions(+), 86 deletions(-) diff --git a/doc/examples/demuxing_decoding.c b/doc/examples/demuxing_decoding.c index 9bde927321..803e35d25c 100644 --- a/doc/examples/demuxing_decoding.c +++