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*..
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel