Re: [FFmpeg-devel] [PATCH 1/2] avcodec: add null encoders

2022-03-15 Thread Paul B Mahol
On Tue, Mar 15, 2022 at 9:47 AM Anton Khirnov wrote: > Quoting Paul B Mahol (2022-03-14 12:56:01) > > +static int null_encoder(AVCodecContext *avctx, AVPacket *pkt, > > +const AVFrame *frame, int *got_packet) > > +{ > > +int ret; > > + > > +pkt->pts = frame->pts; >

Re: [FFmpeg-devel] [PATCH 1/2] avcodec: add null encoders

2022-03-15 Thread Anton Khirnov
Quoting Paul B Mahol (2022-03-14 12:56:01) > +static int null_encoder(AVCodecContext *avctx, AVPacket *pkt, > +const AVFrame *frame, int *got_packet) > +{ > +int ret; > + > +pkt->pts = frame->pts; > +if (avctx->codec_type == AVMEDIA_TYPE_AUDIO) > +pkt->du

Re: [FFmpeg-devel] [PATCH 1/2] avcodec: add null encoders

2022-03-14 Thread Paul B Mahol
On Mon, Mar 14, 2022 at 1:17 PM James Almer wrote: > > > On 3/14/2022 9:17 AM, Paul B Mahol wrote: > > On Mon, Mar 14, 2022 at 1:12 PM James Almer wrote: > > > >> > >> > >> On 3/14/2022 8:56 AM, Paul B Mahol wrote: > >>> Signed-off-by: Paul B Mahol > >>> --- > >>>libavcodec/Makefile |

Re: [FFmpeg-devel] [PATCH 1/2] avcodec: add null encoders

2022-03-14 Thread James Almer
On 3/14/2022 9:17 AM, Paul B Mahol wrote: On Mon, Mar 14, 2022 at 1:12 PM James Almer wrote: On 3/14/2022 8:56 AM, Paul B Mahol wrote: Signed-off-by: Paul B Mahol --- libavcodec/Makefile | 2 ++ libavcodec/allcodecs.c | 2 ++ libavcodec/codec_desc.c | 14 ++ liba

Re: [FFmpeg-devel] [PATCH 1/2] avcodec: add null encoders

2022-03-14 Thread Paul B Mahol
On Mon, Mar 14, 2022 at 1:12 PM James Almer wrote: > > > On 3/14/2022 8:56 AM, Paul B Mahol wrote: > > Signed-off-by: Paul B Mahol > > --- > > libavcodec/Makefile | 2 ++ > > libavcodec/allcodecs.c | 2 ++ > > libavcodec/codec_desc.c | 14 ++ > > libavcodec/codec_id.h | 2

Re: [FFmpeg-devel] [PATCH 1/2] avcodec: add null encoders

2022-03-14 Thread James Almer
On 3/14/2022 8:56 AM, Paul B Mahol wrote: Signed-off-by: Paul B Mahol --- libavcodec/Makefile | 2 ++ libavcodec/allcodecs.c | 2 ++ libavcodec/codec_desc.c | 14 ++ libavcodec/codec_id.h | 2 ++ libavcodec/nullenc.c| 61 +