[FFmpeg-devel] [PATCH v1 1/6] avfilter/af_silencedetect: change parameters order for av_malllocz_array

Limin Wang lance.lmwang at gmail.com
Mon Oct 7 18:46:27 EEST 2019


On Mon, Oct 07, 2019 at 05:40:50PM +0200, Moritz Barsnick wrote:
> On Mon, Oct 07, 2019 at 22:28:01 +0800, Limin Wang wrote:
> > It's minor change, please corrent me if I'm misunderstanding. by description of the av_malloc_array parameters:
> >   * @param nmemb Number of element
> >   * @param size  Size of a single element
> 
> I agree that it's more true to the documentation, although there's
> technically no (or very little) difference.

OK, please ignore the patch if such usage is acceptable.

> 
> Alas, I found 17 such "reversed" uses in the code base, at a quick
> glance.
> 
> Moritz
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list