summaryrefslogtreecommitdiff
path: root/src/libffmpeg/libavcodec/ws-snd1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libffmpeg/libavcodec/ws-snd1.c')
-rw-r--r--src/libffmpeg/libavcodec/ws-snd1.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libffmpeg/libavcodec/ws-snd1.c b/src/libffmpeg/libavcodec/ws-snd1.c
index 5ac4c61bd..aa85b4526 100644
--- a/src/libffmpeg/libavcodec/ws-snd1.c
+++ b/src/libffmpeg/libavcodec/ws-snd1.c
@@ -14,7 +14,7 @@
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "avcodec.h"
@@ -40,7 +40,7 @@ static const char ws_adpcm_4bit[] = {
static int ws_snd_decode_init(AVCodecContext * avctx)
{
// WSSNDContext *c = avctx->priv_data;
-
+
return 0;
}
@@ -49,12 +49,12 @@ static int ws_snd_decode_frame(AVCodecContext *avctx,
uint8_t *buf, int buf_size)
{
// WSSNDContext *c = avctx->priv_data;
-
+
int in_size, out_size;
int sample = 0;
int i;
short *samples = data;
-
+
if (!buf_size)
return 0;
@@ -62,13 +62,13 @@ static int ws_snd_decode_frame(AVCodecContext *avctx,
*data_size = out_size * 2;
in_size = LE_16(&buf[2]);
buf += 4;
-
+
if (in_size == out_size) {
for (i = 0; i < out_size; i++)
*samples++ = (*buf++ - 0x80) << 8;
return buf_size;
}
-
+
while (out_size > 0) {
int code;
uint8_t count;
@@ -129,7 +129,7 @@ static int ws_snd_decode_frame(AVCodecContext *avctx,
}
}
}
-
+
return buf_size;
}