[FFmpeg-devel] [PATCH] lavf: add avformat_transfer_internal_stream_timing_info() and use it in ffmpeg

Clément Bœsch u at pkh.me
Tue Sep 13 20:42:19 EEST 2016


On Tue, Sep 13, 2016 at 02:36:46PM -0300, James Almer wrote:
[...]
> > diff --git a/libavformat/avformat.h b/libavformat/avformat.h
> > index 74915a1..389d985 100644
> > --- a/libavformat/avformat.h
> > +++ b/libavformat/avformat.h
> > @@ -2894,6 +2894,27 @@ int av_apply_bitstream_filters(AVCodecContext *codec, AVPacket *pkt,
> >                                 AVBitStreamFilterContext *bsfc);
> >  #endif
> >  
> > +enum AVTimebaseCopyFrom {
> 
> AVTimebaseSource? CopySource? CopyFrom sounds kinda weird.
> 

Sure, anything you prefer

> > +    AVFMT_TBCF_AUTO = -1,
> > +    AVFMT_TBCF_DECODER,
> > +    AVFMT_TBCF_DEMUXER,
> > +    AVFMT_TBCF_R_FRAMERATE,
> 
> What's the deal with r_frame_rate anyway? There's an FF_API define for it as
> if it were deprecated, yet the field is not tagged as such and said define is
> not wrapping all its uses.
> 

I have no idea. Should I drop it from the public enum and keep the ==2
hack in the function until we find a clean way?

> LGTM with or without taking the above nit into consideration. Thanks a lot.
> 

Thanks for the review

-- 
Clément B.


More information about the ffmpeg-devel mailing list