summaryrefslogtreecommitdiffstats
path: root/doc/examples/scaling_video.c
diff options
context:
space:
mode:
authorMichael Niedermayer <[email protected]>2014-08-16 00:27:14 +0200
committerMichael Niedermayer <[email protected]>2014-09-14 16:53:19 +0200
commitc16e80ee3d1c554fc5d9454cfe96e615e6d00e15 (patch)
tree8db4b6c8be72f18059e01daaff6f70df0f3e7e68 /doc/examples/scaling_video.c
parent66ac5b96e80a073b6d5451fb6caa4e073d6348ea (diff)
doc/examples: remove unneeded NULL checks
dst_file cannot be NULL Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 68bca03951b36755f46d75a5bcfcbba95ced21c4) Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'doc/examples/scaling_video.c')
-rw-r--r--doc/examples/scaling_video.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/examples/scaling_video.c b/doc/examples/scaling_video.c
index fcb98b7489..587f3abe4f 100644
--- a/doc/examples/scaling_video.c
+++ b/doc/examples/scaling_video.c
@@ -132,8 +132,7 @@ int main(int argc, char **argv)
av_get_pix_fmt_name(dst_pix_fmt), dst_w, dst_h, dst_filename);
end:
- if (dst_file)
- fclose(dst_file);
+ fclose(dst_file);
av_freep(&src_data[0]);
av_freep(&dst_data[0]);
sws_freeContext(sws_ctx);