Fixes merging issue from 1.4, frame data is held in data.ptr in trunk
authorDavid Vossel <dvossel@digium.com>
Fri, 6 Nov 2009 17:22:31 +0000 (17:22 +0000)
committerDavid Vossel <dvossel@digium.com>
Fri, 6 Nov 2009 17:22:31 +0000 (17:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@228441 65c4cc65-6c06-0410-ace0-fbb531ad65f3

codecs/codec_ilbc.c

index f766564..3227dc8 100644 (file)
@@ -88,7 +88,7 @@ static int ilbctolin_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
        int16_t *dst = pvt->outbuf.i16;
        float tmpf[ILBC_SAMPLES];
 
-       if (!f->data && f->datalen) {
+       if (!f->data.ptr && f->datalen) {
                ast_log(LOG_DEBUG, "issue 16070, ILIB ERROR. data = NULL datalen = %d src = %s\n", f->datalen, f->src ? f->src : "no src set");
                f->datalen = 0;
        }