# HG changeset patch # User mstorsjo # Date 1269269870 0 # Node ID b0e1c40e9d075b7122b496b06f2f8fa138b24a82 # Parent 9bd282dec604838ad81c841d198d1b07313f4365 Add doxygen docs for av_xiphlacing Patch by Josh Allmann (joshua allmann gmail com) diff -r 9bd282dec604 -r b0e1c40e9d07 avcodec.h --- a/avcodec.h Mon Mar 22 14:26:17 2010 +0000 +++ b/avcodec.h Mon Mar 22 14:57:50 2010 +0000 @@ -3784,6 +3784,13 @@ int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, enum PixelFormat pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color); +/** + * Encodes extradata length to a buffer. Used by xiph codecs. + * + * @param s buffer to write to; must be at least (v/255+1) bytes long + * @param v size of extradata in bytes + * @return number of bytes written to the buffer. + */ unsigned int av_xiphlacing(unsigned char *s, unsigned int v); /**