diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-16 00:27:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-14 16:45:50 +0200 |
commit | 68bca03951b36755f46d75a5bcfcbba95ced21c4 (patch) | |
tree | 0f888f8f1a90326856973ffb218039add23f53d4 /doc/examples/scaling_video.c | |
parent | da2186be81b5cb2d24da5671e25affbb8f09920d (diff) | |
download | ffmpeg-68bca03951b36755f46d75a5bcfcbba95ced21c4.tar.gz |
doc/examples: remove unneeded NULL checks
dst_file cannot be NULL
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/examples/scaling_video.c')
-rw-r--r-- | doc/examples/scaling_video.c | 3 |
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); |