[FFmpeg-devel] [PATCH v2] lavf/h264: Add support for raw h264 stream from Arecont camera, fixes ticket #5154

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun May 5 02:56:11 EEST 2019


Am Sa., 4. Mai 2019 um 15:01 Uhr schrieb Shivam Goyal <shivgo at iitk.ac.in>:
>
> On 04-05-2019 15:15, Hendrik Leppkes wrote:
>
> > On Sat, May 4, 2019 at 10:52 AM Shivam Goyal <shivgo at iitk.ac.in> wrote:
> >
> >> The improved patch is for ticket #5154.
> >>
> >> Support for Raw h264 stream from Arecont Camera.
> >>
> >> Suggest any changes required.
> >
> > The format-name based check in ff_raw_read_partial_packet is really
> > iffy. You can setup a specific read function in the AVInputFormat
> > struct, just can't use the macro to set it up then. Also keep the
> > probe and read function in the same file then.
>
> Thanks for your suggestion.
> Yeah, the name based check is not good. but i thought that, as the macro
> is not taking any packet reading function as argument then there is no
> other way.

Just create a new file with a new demuxer and don't use the macro.

And please fix the formatting of "} else {" (one line).

Carl Eugen


More information about the ffmpeg-devel mailing list