mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Expand codec bitfield from 32 bits to 64 bits.
Reviewboard: https://reviewboard.asterisk.org/r/416/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -291,9 +291,9 @@ static int ogg_vorbis_write(struct ast_filestream *fs, struct ast_frame *f)
|
||||
ast_log(LOG_WARNING, "Asked to write non-voice frame!\n");
|
||||
return -1;
|
||||
}
|
||||
if (f->subclass != AST_FORMAT_SLINEAR) {
|
||||
ast_log(LOG_WARNING, "Asked to write non-SLINEAR frame (%d)!\n",
|
||||
f->subclass);
|
||||
if (f->subclass.codec != AST_FORMAT_SLINEAR) {
|
||||
ast_log(LOG_WARNING, "Asked to write non-SLINEAR frame (%s)!\n",
|
||||
ast_getformatname(f->subclass.codec));
|
||||
return -1;
|
||||
}
|
||||
if (!f->datalen)
|
||||
@@ -438,7 +438,7 @@ static struct ast_frame *ogg_vorbis_read(struct ast_filestream *fs,
|
||||
short *buf; /* SLIN data buffer */
|
||||
|
||||
fs->fr.frametype = AST_FRAME_VOICE;
|
||||
fs->fr.subclass = AST_FORMAT_SLINEAR;
|
||||
fs->fr.subclass.codec = 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.ptr); /* SLIN data buffer */
|
||||
|
Reference in New Issue
Block a user