summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2005-05-13 18:10:23 +0000
committerMåns Rullgård <mans@mansr.com>2005-05-13 18:10:23 +0000
commitad2b531d3ffbcb074a81f8e6a35f500519b6909a (patch)
tree5ce84049af3d414a4aeb1964123fceeda12b7cc2 /libavcodec/utils.c
parente817a73daa7e6f473cd793d8c84424536282b163 (diff)
change extradata format for vorbis
Originally committed as revision 4235 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 3eea9a962f..16d00bc33a 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1015,3 +1015,17 @@ int avcodec_thread_init(AVCodecContext *s, int thread_count){
return -1;
}
#endif
+
+unsigned int av_xiphlacing(unsigned char *s, unsigned int v)
+{
+ unsigned int n = 0;
+
+ while(v >= 0xff) {
+ *s++ = 0xff;
+ v -= 0xff;
+ n++;
+ }
+ *s = v;
+ n++;
+ return n;
+}