Commit 3c04258c authored by Yann Diorcet's avatar Yann Diorcet

PLC decoder: Use plc flag of block

parent bd8fdbcb
......@@ -83,6 +83,8 @@ MS2_PUBLIC void ms_queue_destroy(MSQueue *q);
#define mblk_get_marker_info(m) ((m)->reserved2&0x1) /*bit 1*/
#define mblk_set_precious_flag(m,bit) __mblk_set_flag(m,1,bit) /*use to prevent mirroring*/
#define mblk_get_precious_flag(m) (((m)->reserved2)>>1 & 0x1) /*bit 2*/
#define mblk_set_plc_flag(m,bit) __mblk_set_flag(m,2,bit) /*use to mark a plc generated block*/
#define mblk_get_plc_flag(m) (((m)->reserved2)>>1 & 0x2) /*bit 2*/
#define mblk_set_cseq(m,value) (m)->reserved2=(m)->reserved2| ((value&0xFFFF)<<16);
#define mblk_get_cseq(m) ((m)->reserved2>>16)
......
......@@ -50,6 +50,7 @@ static void generic_plc_process(MSFilter *f) {
memset(m->b_wptr, 0, buff_size);
m->b_wptr += buff_size;
ms_queue_put(f->outputs[0], m);
mblk_set_plc_flag(m, 1);
ms_concealer_inc_sample_time(mgps->concealer, f->ticker->time, f->ticker->interval, FALSE);
}
}
......
......@@ -590,6 +590,7 @@ static void dec_process(MSFilter *f){
om=allocb(bytes,0);
err=speex_decode_int(s->state,NULL,(int16_t*)om->b_wptr);
om->b_wptr+=bytes;
mblk_set_plc_flag(om, 1);
ms_queue_put(f->outputs[0],om);
s->sample_time+=20;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment