On Tue, Jun 8, 2021 at 2:09 PM Nicolas George <geo...@nsup.org> wrote:
>
> Diederick Niehorster (12021-06-08):
> > -    *caps = av_mallocz(sizeof(**caps));
> > +    *caps = av_mallocz(sizeof(AVDeviceCapabilitiesQuery));
>
> var = malloc(sizeof(*var)) is preferred over var = malloc(type), because
> if you change the type of var, it happens in another part of the code
> and you would have to remember to change it here too.

Reverted.

Thanks,
Dee
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to