diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-08-15 11:02:50 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-08-15 11:02:50 +0000 |
commit | 7c809dc3e24a321ed0b1fc3a34442127b762f801 (patch) | |
tree | 73039cb645ad3ffeacdc54f779dc90a3444b2ad5 /libavcodec/libdirac_libschro.c | |
parent | cea0b5272d82c19c86dfcc3c61e097f4df9a4c2d (diff) | |
download | ffmpeg-7c809dc3e24a321ed0b1fc3a34442127b762f801.tar.gz |
Simplify 'if' condition statements.
Drop useless '!= 0' from 'exp != 0', replace 'exp == 0' by '!exp'.
Originally committed as revision 19647 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libdirac_libschro.c')
-rw-r--r-- | libavcodec/libdirac_libschro.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/libdirac_libschro.c b/libavcodec/libdirac_libschro.c index 5bfaeb784c..df9133da5d 100644 --- a/libavcodec/libdirac_libschro.c +++ b/libavcodec/libdirac_libschro.c @@ -86,12 +86,12 @@ int ff_dirac_schro_queue_push_back (FfmpegDiracSchroQueue *queue, void *p_data) FfmpegDiracSchroQueueElement *p_new = av_mallocz(sizeof(FfmpegDiracSchroQueueElement)); - if (p_new == NULL) + if (!p_new) return -1; p_new->data = p_data; - if (queue->p_head == NULL) + if (!queue->p_head) queue->p_head = p_new; else queue->p_tail->next = p_new; @@ -105,7 +105,7 @@ void *ff_dirac_schro_queue_pop (FfmpegDiracSchroQueue *queue) { FfmpegDiracSchroQueueElement *top = queue->p_head; - if (top != NULL) { + if (top) { void *data = top->data; queue->p_head = queue->p_head->next; --queue->size; |