[FFmpeg-devel] [PATCH v2 03/18] avcodec/metaenc: added an encoder/decoder for timed metadata

Erkki Seppälä erkki.seppala.ext at nokia.com
Fri Sep 2 10:12:21 EEST 2016


On 09/01/2016 08:01 PM, Michael Niedermayer wrote:
> this causes a compiler warning:
> libavcodec/metacodec.c: In function ‘meta_encode’:
> libavcodec/metacodec.c:41:21: warning: assignment from incompatible pointer type [enabled by default]

>         avpkt->buf = av_buffer_alloc(frame->nb_samples);
>         if (!avpkt->buf)
>           return AVERROR(ENOMEM);
>         avpkt->data = avpkt->buf; /* warning */
>         memcpy(avpkt->data, frame->data[0], frame->nb_samples);

Oops. Fixed. I now understand why FFmpeg prefers uint8_t* over void*..



More information about the ffmpeg-devel mailing list