summaryrefslogtreecommitdiff
path: root/libavcodec/libschroedingerdec.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-08-15 11:02:50 +0000
committerDiego Biurrun <diego@biurrun.de>2009-08-15 11:02:50 +0000
commit7c809dc3e24a321ed0b1fc3a34442127b762f801 (patch)
tree73039cb645ad3ffeacdc54f779dc90a3444b2ad5 /libavcodec/libschroedingerdec.c
parentcea0b5272d82c19c86dfcc3c61e097f4df9a4c2d (diff)
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/libschroedingerdec.c')
-rw-r--r--libavcodec/libschroedingerdec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/libschroedingerdec.c b/libavcodec/libschroedingerdec.c
index 3985a1ca2d..e1c1844f82 100644
--- a/libavcodec/libschroedingerdec.c
+++ b/libavcodec/libschroedingerdec.c
@@ -196,7 +196,7 @@ static void libschroedinger_handle_first_access_unit(AVCodecContext *avccontext)
avccontext->time_base.den = p_schro_params->format->frame_rate_numerator;
avccontext->time_base.num = p_schro_params->format->frame_rate_denominator;
- if (p_schro_params->dec_pic.data[0] == NULL)
+ if (!p_schro_params->dec_pic.data[0])
{
avpicture_alloc(&p_schro_params->dec_pic,
avccontext->pix_fmt,
@@ -226,7 +226,7 @@ static int libschroedinger_decode_frame(AVCodecContext *avccontext,
*data_size = 0;
FfmpegSchroParseContextInit (&parse_ctx, buf, buf_size);
- if (buf_size == 0) {
+ if (!buf_size) {
if (!p_schro_params->eos_signalled) {
state = schro_decoder_push_end_of_stream(decoder);
p_schro_params->eos_signalled = 1;
@@ -300,7 +300,7 @@ static int libschroedinger_decode_frame(AVCodecContext *avccontext,
/* Grab next frame to be returned from the top of the queue. */
frame = ff_dirac_schro_queue_pop(&p_schro_params->dec_frame_queue);
- if (frame != NULL) {
+ if (frame) {
memcpy (p_schro_params->dec_pic.data[0],
frame->components[0].data,
frame->components[0].length);