dont enqueue h264 frames if we dont have locked DTS yet
This commit is contained in:
parent
341a062c4a
commit
3bca77c2be
1 changed files with 2 additions and 1 deletions
|
@ -632,7 +632,8 @@ parse_h264(th_transport_t *t, th_stream_t *st, size_t len,
|
|||
|
||||
case 5: /* IDR+SLICE */
|
||||
case 1:
|
||||
if(st->st_curpkt != NULL || st->st_frame_duration == 0)
|
||||
if(st->st_curpkt != NULL || st->st_frame_duration == 0 ||
|
||||
st->st_curdts == AV_NOPTS_VALUE)
|
||||
break;
|
||||
|
||||
if(t->tht_dts_start == AV_NOPTS_VALUE)
|
||||
|
|
Loading…
Add table
Reference in a new issue