kopia lustrzana https://github.com/kierank/libmpegts
Add the SCTE T-STD model for VBI data.
rodzic
717199bf6e
commit
e5b45dcad2
4
codecs.h
4
codecs.h
|
@ -126,4 +126,8 @@ const aac_buffer_t aac_buffers[] =
|
|||
#define TELETEXT_RXN 6750000
|
||||
#define TELETEXT_BTTX 1504*8
|
||||
|
||||
/* SCTE VBI */
|
||||
#define SCTE_VBI_RXN 324539
|
||||
#define SCTE_VBI_MB_SIZE 2256*8
|
||||
|
||||
#endif
|
||||
|
|
10
libmpegts.c
10
libmpegts.c
|
@ -668,10 +668,18 @@ int ts_setup_dvb_vbi( ts_writer_t *w, int pid, int num_vbis, ts_dvb_vbi_t *vbis
|
|||
memcpy( stream->dvb_vbi_ctx[i].lines, vbis[i].lines, vbis[i].num_lines * sizeof(ts_dvb_vbi_line_t) );
|
||||
}
|
||||
|
||||
/* VBI uses teletext T-STD */
|
||||
if( w->ts_type == TS_TYPE_CABLELABS || w->ts_type == TS_TYPE_ATSC )
|
||||
{
|
||||
stream->rx = SCTE_VBI_RXN;
|
||||
stream->mb.buf_size = SCTE_VBI_MB_SIZE;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* DVB-VBI uses teletext T-STD */
|
||||
stream->tb.buf_size = TELETEXT_T_BS;
|
||||
stream->rx = TELETEXT_RXN;
|
||||
stream->mb.buf_size = TELETEXT_BTTX;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue