Patch by Anuradha Suraparaju anuradha rd bbc co uk
Originally committed as revision 14150 to svn://svn.ffmpeg.org/ffmpeg/trunk
void ff_dirac_schro_queue_init (FfmpegDiracSchroQueue *queue)
{
queue->p_head = queue->p_tail = NULL;
+ queue->size = 0;
}
void ff_dirac_schro_queue_free (FfmpegDiracSchroQueue *queue,
queue->p_tail->next = p_new;
queue->p_tail = p_new;
+ ++queue->size;
return 0;
}
if (top != NULL) {
void *data = top->data;
queue->p_head = queue->p_head->next;
+ --queue->size;
av_freep (&top);
return data;
}
FfmpegDiracSchroQueueElement *p_head;
/** Pointer to tail of queue */
FfmpegDiracSchroQueueElement *p_tail;
+ /** Queue size*/
+ int size;
} FfmpegDiracSchroQueue;
/**