[FFmpeg-devel] [PATCH] cbs: Add function to make content of a unit writable

Andreas Rheinhardt andreas.rheinhardt at googlemail.com
Sun Nov 25 23:44:00 EET 2018


Carl Eugen Hoyos:
> 2018-11-25 22:05 GMT+01:00, Andreas Rheinhardt
> <andreas.rheinhardt at googlemail.com>:
> 
>> +    .make_writable     = NULL,
> 
> Why do you think these are needed?
> 
> Carl Eugen
It's not needed. If left out, .make_writable will be implicitly initialized to a NULL pointer because the various ff_cbs_type_xyz all have static storage duration. But I nevertheless thought that it is nicer to make the initialization explicit, because then you actually see all the members of each CodedBitstreamType.

Andreas


More information about the ffmpeg-devel mailing list