comparison libdirac_libschro.c @ 10056:646065f63290 libavcodec

Remove useless braces around if/for/while expressions.
author diego
date Sat, 15 Aug 2009 11:12:47 +0000
parents fdb318d12314
children 965220ebc611
comparison
equal deleted inserted replaced
10055:fdb318d12314 10056:646065f63290
57 &ff_dirac_schro_video_format_info[idx]; 57 &ff_dirac_schro_video_format_info[idx];
58 if (avccontext->width == vf->width && 58 if (avccontext->width == vf->width &&
59 avccontext->height == vf->height){ 59 avccontext->height == vf->height){
60 ret_idx = idx; 60 ret_idx = idx;
61 if (avccontext->time_base.den == vf->frame_rate_num && 61 if (avccontext->time_base.den == vf->frame_rate_num &&
62 avccontext->time_base.num == vf->frame_rate_denom) { 62 avccontext->time_base.num == vf->frame_rate_denom)
63 return idx; 63 return idx;
64 }
65 } 64 }
66 } 65 }
67 return ret_idx; 66 return ret_idx;
68 } 67 }
69 68
74 } 73 }
75 74
76 void ff_dirac_schro_queue_free (FfmpegDiracSchroQueue *queue, 75 void ff_dirac_schro_queue_free (FfmpegDiracSchroQueue *queue,
77 void (*free_func)(void *)) 76 void (*free_func)(void *))
78 { 77 {
79 while (queue->p_head) { 78 while (queue->p_head)
80 free_func( ff_dirac_schro_queue_pop(queue) ); 79 free_func( ff_dirac_schro_queue_pop(queue) );
81 }
82 } 80 }
83 81
84 int ff_dirac_schro_queue_push_back (FfmpegDiracSchroQueue *queue, void *p_data) 82 int ff_dirac_schro_queue_push_back (FfmpegDiracSchroQueue *queue, void *p_data)
85 { 83 {
86 FfmpegDiracSchroQueueElement *p_new = 84 FfmpegDiracSchroQueueElement *p_new =