summaryrefslogtreecommitdiff
path: root/doc/examples/resampling_audio.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-16 00:27:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-14 16:45:50 +0200
commit68bca03951b36755f46d75a5bcfcbba95ced21c4 (patch)
tree0f888f8f1a90326856973ffb218039add23f53d4 /doc/examples/resampling_audio.c
parentda2186be81b5cb2d24da5671e25affbb8f09920d (diff)
doc/examples: remove unneeded NULL checks
dst_file cannot be NULL Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/examples/resampling_audio.c')
-rw-r--r--doc/examples/resampling_audio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/examples/resampling_audio.c b/doc/examples/resampling_audio.c
index 8a43b09039..f35e7e1779 100644
--- a/doc/examples/resampling_audio.c
+++ b/doc/examples/resampling_audio.c
@@ -199,8 +199,7 @@ int main(int argc, char **argv)
fmt, dst_ch_layout, dst_nb_channels, dst_rate, dst_filename);
end:
- if (dst_file)
- fclose(dst_file);
+ fclose(dst_file);
if (src_data)
av_freep(&src_data[0]);