AVPacket by default uses unaligned buffers --- libavcodec/avcodec.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 61fde4b..0ae8657 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3176,8 +3176,9 @@ int av_grow_packet(AVPacket *pkt, int grow_by); * * @param pkt packet to be initialized. This function will set the data, size, * buf and destruct fields, all others are left untouched. - * @param data Data allocated by av_malloc() to be used as packet data. If this - * function returns successfully, the data is owned by the underlying AVBuffer. + * @param data Data allocated by av_realloc() to be used as packet data. If + * this function returns successfully, the data is owned by the + * underlying AVBuffer. * The caller may not access the data through other means. * @param size size of data in bytes, without the padding. I.e. the full buffer * size is assumed to be size + FF_INPUT_BUFFER_PADDING_SIZE. -- 1.8.2.1 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
