comparison h264.c @ 10528:6fe84da648e2 libavcodec

Reset rbsp buffer size when freeing its data buffer. Patch by Mike Scheutzow $(name) AT alcatel 'minus' lucent com
author benoit
date Fri, 13 Nov 2009 18:33:28 +0000
parents 368f82f6e2e3
children 95f3daa991a2
comparison
equal deleted inserted replaced
10527:8cb3965df30f 10528:6fe84da648e2
1997 av_freep(&hx->top_borders[1]); 1997 av_freep(&hx->top_borders[1]);
1998 av_freep(&hx->top_borders[0]); 1998 av_freep(&hx->top_borders[0]);
1999 av_freep(&hx->s.obmc_scratchpad); 1999 av_freep(&hx->s.obmc_scratchpad);
2000 av_freep(&hx->rbsp_buffer[1]); 2000 av_freep(&hx->rbsp_buffer[1]);
2001 av_freep(&hx->rbsp_buffer[0]); 2001 av_freep(&hx->rbsp_buffer[0]);
2002 hx->rbsp_buffer_size[0] = 0;
2003 hx->rbsp_buffer_size[1] = 0;
2002 if (i) av_freep(&h->thread_context[i]); 2004 if (i) av_freep(&h->thread_context[i]);
2003 } 2005 }
2004 } 2006 }
2005 2007
2006 static void init_dequant8_coeff_table(H264Context *h){ 2008 static void init_dequant8_coeff_table(H264Context *h){