/* Remove the first sample from the sample queue.  */
static void sample_queue_pop(HintSampleQueue *queue)
/* Remove the first sample from the sample queue.  */
static void sample_queue_pop(HintSampleQueue *queue)
{
    if (queue->len <= 0)
        return;
    if (queue->samples[0].own_data)
        av_free(queue->samples[0].data);
    queue->len--;
    memmove(queue->samples, queue->samples + 1, sizeof(HintSample)*queue->len);
}