On Tue, Jun 8, 2021 at 2:09 PM Nicolas George <[email protected]> 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 [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
