[FFmpeg-devel] [PATCH] mxfdec: set AVFMT_SEEK_TO_PTS demuxer flag

Tomas Härdin tomas.hardin at codemill.se
Tue Aug 25 23:04:00 CEST 2015


On Tue, 2015-08-25 at 07:58 +0100, tim nicholson wrote:
> On 14/08/15 13:27, Tomas Härdin wrote:
> > On Mon, 2015-08-10 at 10:14 +0200, Tomas Härdin wrote:
> >> On Sun, 2015-08-09 at 20:32 +0200, Marton Balint wrote:
> >>> Since 53f2ef2c4afb1d49a679dea9163cb0e4671f3117 seeking is done using
>  PTS.
> >>>
> >>> Signed-off-by: Marton Balint <cus at passwd.hu>
> >>> ---
> >>>  libavformat/mxfdec.c | 1 +
> >>>  1 file changed, 1 insertion(+)
> >>>
> >>> diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
> >>> index 2d921db..5734976 100644
> >>> --- a/libavformat/mxfdec.c
> >>> +++ b/libavformat/mxfdec.c
> >>> @@ -3210,6 +3210,7 @@ static int mxf_read_seek(AVFormatContext *s, i
> nt stream_index, int64_t sample_ti
> >>>  AVInputFormat ff_mxf_demuxer = {
> >>>      .name           = "mxf",
> >>>      .long_name      = NULL_IF_CONFIG_SMALL("MXF (Material eXchange 
> Format)"),
> >>> +    .flags          = AVFMT_SEEK_TO_PTS,
> >>>      .priv_data_size = sizeof(MXFContext),
> >>>      .read_probe     = mxf_probe,
> >>>      .read_header    = mxf_read_header,
> >>
> >> Yeah, I seem to recall this when swearing at the seek code in mxfdec
> >> some years ago. I'll wait a few days to see if any other MXF guys hav
> e
> >> something to say here or on IRC, then I suppose I'll push
> >>
> 
> Only the seek code you swear at?

Good point; MXF provides plenty of opportunity for getting riled up

> >> /Tomas
> > 
> > Pushed. Hopefully everything worked alright
> > 
> 
> Just back from leave, so time will tell....

Indeed.

/Tomas



More information about the ffmpeg-devel mailing list