[asterisk-commits] murf: trunk r43604 -
/trunk/formats/format_ogg_vorbis.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Sep 25 07:49:56 MST 2006
Author: murf
Date: Mon Sep 25 09:49:56 2006
New Revision: 43604
URL: http://svn.digium.com/view/asterisk?rev=43604&view=rev
Log:
This tiny fix prevents asterisk from crashing if trying to play an OGG moh file.
Modified:
trunk/formats/format_ogg_vorbis.c
Modified: trunk/formats/format_ogg_vorbis.c
URL: http://svn.digium.com/view/asterisk/trunk/formats/format_ogg_vorbis.c?rev=43604&r1=43603&r2=43604&view=diff
==============================================================================
--- trunk/formats/format_ogg_vorbis.c (original)
+++ trunk/formats/format_ogg_vorbis.c Mon Sep 25 09:49:56 2006
@@ -440,12 +440,13 @@
int samples_in;
int samples_out = 0;
struct vorbis_desc *s = (struct vorbis_desc *)fs->private;
- short *buf = (short *)(fs->fr.data); /* SLIN data buffer */
+ short *buf; /* SLIN data buffer */
fs->fr.frametype = AST_FRAME_VOICE;
fs->fr.subclass = AST_FORMAT_SLINEAR;
fs->fr.mallocd = 0;
AST_FRAME_SET_BUFFER(&fs->fr, fs->buf, AST_FRIENDLY_OFFSET, BUF_SIZE);
+ buf = (short *)(fs->fr.data); /* SLIN data buffer */
while (samples_out != SAMPLES_MAX) {
float **pcm;
More information about the asterisk-commits
mailing list