cosmetics: Write NULL pointer equality checks more compactly
Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
committed by
Diego Biurrun
parent
efd26bedec
commit
f929ab0569
2
avplay.c
2
avplay.c
@@ -1388,7 +1388,7 @@ static int queue_picture(VideoState *is, AVFrame *src_frame, double pts, int64_t
|
||||
is->img_convert_ctx = sws_getCachedContext(is->img_convert_ctx,
|
||||
vp->width, vp->height, vp->pix_fmt, vp->width, vp->height,
|
||||
dst_pix_fmt, sws_flags, NULL, NULL, NULL);
|
||||
if (is->img_convert_ctx == NULL) {
|
||||
if (!is->img_convert_ctx) {
|
||||
fprintf(stderr, "Cannot initialize the conversion context\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user