Re: [FFmpeg-devel] [PATCH] avcodec: add a bsf to reorder DTS into PTS

2022-10-03 Thread James Almer
On 9/28/2022 12:39 PM, Anton Khirnov wrote: Quoting James Almer (2022-09-23 16:27:32) On 9/23/2022 10:06 AM, Anton Khirnov wrote: +static int dts2pts_filter(AVBSFContext *ctx, AVPacket *out) +{ +DTS2PTSContext *s = ctx->priv_data; +DTS2PTSNode *poc_node = NULL, *next[2] = { NULL, NULL }

Re: [FFmpeg-devel] [PATCH] avcodec: add a bsf to reorder DTS into PTS

2022-09-28 Thread Anton Khirnov
Quoting James Almer (2022-09-23 16:27:32) > On 9/23/2022 10:06 AM, Anton Khirnov wrote: > >> +static int dts2pts_filter(AVBSFContext *ctx, AVPacket *out) > >> +{ > >> +DTS2PTSContext *s = ctx->priv_data; > >> +DTS2PTSNode *poc_node = NULL, *next[2] = { NULL, NULL }; > >> +DTS2PTSFrame f

Re: [FFmpeg-devel] [PATCH] avcodec: add a bsf to reorder DTS into PTS

2022-09-23 Thread James Almer
On 9/23/2022 10:06 AM, Anton Khirnov wrote: Quoting James Almer (2022-09-05 03:09:55) +static int h264_init(AVBSFContext *ctx) +{ +DTS2PTSContext *s = ctx->priv_data; +DTS2PTSH264Context *h264 = &s->u.h264; + +s->cbc->decompose_unit_types= h264_decompose_unit_types; +s->cbc->

Re: [FFmpeg-devel] [PATCH] avcodec: add a bsf to reorder DTS into PTS

2022-09-23 Thread Anton Khirnov
Quoting James Almer (2022-09-05 03:09:55) > +static int h264_init(AVBSFContext *ctx) > +{ > +DTS2PTSContext *s = ctx->priv_data; > +DTS2PTSH264Context *h264 = &s->u.h264; > + > +s->cbc->decompose_unit_types= h264_decompose_unit_types; > +s->cbc->nb_decompose_unit_types = > FF_A

Re: [FFmpeg-devel] [PATCH] avcodec: add a bsf to reorder DTS into PTS

2022-08-30 Thread Andreas Rheinhardt
James Almer: > On 8/30/2022 11:30 AM, Andreas Rheinhardt wrote: >> James Almer: >>> Starting with an h264 implementation. Can be extended to support >>> other codecs. >>> >>> Addresses ticket #502. >>> >>> Signed-off-by: James Almer >>> --- >>>   configure  |   1 + >>>   libavc

Re: [FFmpeg-devel] [PATCH] avcodec: add a bsf to reorder DTS into PTS

2022-08-30 Thread James Almer
On 8/30/2022 11:30 AM, Andreas Rheinhardt wrote: James Almer: Starting with an h264 implementation. Can be extended to support other codecs. Addresses ticket #502. Signed-off-by: James Almer --- configure | 1 + libavcodec/Makefile| 1 + libavcodec/bit

Re: [FFmpeg-devel] [PATCH] avcodec: add a bsf to reorder DTS into PTS

2022-08-30 Thread Andreas Rheinhardt
James Almer: > Starting with an h264 implementation. Can be extended to support other codecs. > > Addresses ticket #502. > > Signed-off-by: James Almer > --- > configure | 1 + > libavcodec/Makefile| 1 + > libavcodec/bitstream_filters.c | 1 + > libavcode