Commit 68bca039 authored by Michael Niedermayer's avatar Michael Niedermayer

doc/examples: remove unneeded NULL checks

dst_file cannot be NULL
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent da2186be
...@@ -199,7 +199,6 @@ int main(int argc, char **argv) ...@@ -199,7 +199,6 @@ int main(int argc, char **argv)
fmt, dst_ch_layout, dst_nb_channels, dst_rate, dst_filename); fmt, dst_ch_layout, dst_nb_channels, dst_rate, dst_filename);
end: end:
if (dst_file)
fclose(dst_file); fclose(dst_file);
if (src_data) if (src_data)
......
...@@ -132,7 +132,6 @@ int main(int argc, char **argv) ...@@ -132,7 +132,6 @@ int main(int argc, char **argv)
av_get_pix_fmt_name(dst_pix_fmt), dst_w, dst_h, dst_filename); av_get_pix_fmt_name(dst_pix_fmt), dst_w, dst_h, dst_filename);
end: end:
if (dst_file)
fclose(dst_file); fclose(dst_file);
av_freep(&src_data[0]); av_freep(&src_data[0]);
av_freep(&dst_data[0]); av_freep(&dst_data[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment