Drop remaining unneeded != NULL
Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
60dbed6067
commit
81a663f49e
16 changed files with 46 additions and 46 deletions
|
|
@ -110,7 +110,7 @@ static void frame_list_remove_samples(FrameList *frame_list, int nb_samples)
|
|||
int samples = nb_samples;
|
||||
while (samples > 0) {
|
||||
FrameInfo *info = frame_list->list;
|
||||
av_assert0(info != NULL);
|
||||
av_assert0(info);
|
||||
if (info->nb_samples <= samples) {
|
||||
samples -= info->nb_samples;
|
||||
frame_list->list = info->next;
|
||||
|
|
@ -142,7 +142,7 @@ static int frame_list_add_frame(FrameList *frame_list, int nb_samples, int64_t p
|
|||
frame_list->list = info;
|
||||
frame_list->end = info;
|
||||
} else {
|
||||
av_assert0(frame_list->end != NULL);
|
||||
av_assert0(frame_list->end);
|
||||
frame_list->end->next = info;
|
||||
frame_list->end = info;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -265,7 +265,7 @@ int put_image (vf_instance_t *vf, mp_image_t *src, double pts)
|
|||
dst = ff_vf_get_image (vf->next, src->imgfmt, MP_IMGTYPE_EXPORT, 0, src->w, src->h);
|
||||
|
||||
for (i = 0; i < ((src->num_planes>1)?3:1); i++) {
|
||||
if (eq2->param[i].adjust != NULL) {
|
||||
if (eq2->param[i].adjust) {
|
||||
dst->planes[i] = eq2->buf[i];
|
||||
dst->stride[i] = eq2->buf_w[i];
|
||||
|
||||
|
|
@ -439,7 +439,7 @@ int query_format (vf_instance_t *vf, unsigned fmt)
|
|||
static
|
||||
void uninit (vf_instance_t *vf)
|
||||
{
|
||||
if (vf->priv != NULL) {
|
||||
if (vf->priv) {
|
||||
free (vf->priv->buf[0]);
|
||||
free (vf->priv);
|
||||
}
|
||||
|
|
@ -482,7 +482,7 @@ int vf_open(vf_instance_t *vf, char *args)
|
|||
eq2->ggamma = 1.0;
|
||||
eq2->bgamma = 1.0;
|
||||
|
||||
if (args != NULL) {
|
||||
if (args) {
|
||||
par[0] = 1.0;
|
||||
par[1] = 1.0;
|
||||
par[2] = 0.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue