[FFmpeg-devel] [PATCH]Add -skip_initial_bytes option (-sb)

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Nov 16 18:45:53 CET 2012


Nicolas George <nicolas.george <at> normalesup.org> writes:

> It seems too short and obscure a name for an option that 
> is rarely useful anyway.

It was requested on the user mailing list twice in a short 
time period and I remember using it with MPlayer since 
forever.

[...]

> > @@ -2369,6 +2373,8 @@ const OptionDef options[] = {
> >          "extract an attachment into a file", "filename" },
> >      { "debug_ts",       OPT_BOOL | OPT_EXPERT, { &debug_ts },
> >          "print timestamp debugging info" },
> > +    { "skip_initial_bytes", HAS_ARG | OPT_STRING | OPT_EXPERT | OPT_SPEC, 
> > { .off = OFFSET(skip_initial_bytes)},
> > +        "skip initial bytes", "bytes" },
> 
> Why is it needed? Adding to lavf/options_table.h should be 
> enough, unless I am completely mistaken.

Yes, I thought that would not allow it to work stream-wise, 
but that was not correct.

Will send a new patch, Carl Eugen



More information about the ffmpeg-devel mailing list