Mercurial > libavcodec.hg
comparison roqaudioenc.c @ 12262:dde20597f15e libavcodec
Use "const" qualifier for pointers that point to input data of
audio encoders.
This is purely for clarity/documentation purposes.
author | reimar |
---|---|
date | Sat, 24 Jul 2010 13:59:49 +0000 |
parents | 8a4984c5cacc |
children |
comparison
equal
deleted
inserted
replaced
12261:940736055764 | 12262:dde20597f15e |
---|---|
106 | 106 |
107 static int roq_dpcm_encode_frame(AVCodecContext *avctx, | 107 static int roq_dpcm_encode_frame(AVCodecContext *avctx, |
108 unsigned char *frame, int buf_size, void *data) | 108 unsigned char *frame, int buf_size, void *data) |
109 { | 109 { |
110 int i, samples, stereo, ch; | 110 int i, samples, stereo, ch; |
111 short *in; | 111 const short *in; |
112 unsigned char *out; | 112 unsigned char *out; |
113 | 113 |
114 ROQDPCMContext *context = avctx->priv_data; | 114 ROQDPCMContext *context = avctx->priv_data; |
115 | 115 |
116 stereo = (avctx->channels == 2); | 116 stereo = (avctx->channels == 2); |