Mercurial > libavcodec.hg
changeset 7233:238a3511f183 libavcodec
Add a parameter for queue size.
Patch by Anuradha Suraparaju anuradha rd bbc co uk
author | benoit |
---|---|
date | Thu, 10 Jul 2008 11:40:19 +0000 |
parents | cc55dd004819 |
children | dea986389c57 |
files | libdirac_libschro.c libdirac_libschro.h |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libdirac_libschro.c Thu Jul 10 06:15:13 2008 +0000 +++ b/libdirac_libschro.c Thu Jul 10 11:40:19 2008 +0000 @@ -70,6 +70,7 @@ 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, @@ -96,6 +97,7 @@ queue->p_tail->next = p_new; queue->p_tail = p_new; + ++queue->size; return 0; } @@ -106,6 +108,7 @@ if (top != NULL) { void *data = top->data; queue->p_head = queue->p_head->next; + --queue->size; av_freep (&top); return data; }