{
// This should happen extremely rarely if ever.
// But if we get here, this is the first buffer received for
- // this stream. Normally, some buffers will be queued for
+ // this stream. Normally, some buffers will be queued for
// every stream before we ever call UpdateSCR.
- // We don't really know what it's timestamp should be,
- // but 0 is a good guess.
- buf->s.start = 0;
- last_scr_pts = buf->s.start;
+ // We don't really know what it's timestamp should be.
+ // So drop the buffer.
+ hb_buffer_close(&buf);
+ return 0;
}
if (buf->s.stop != AV_NOPTS_VALUE)
{