Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-11-22 02:29:56 +0400
committerStefano Sabatini <stefasab@gmail.com>2013-11-22 02:29:56 +0400
commit50a28b13936be3e62254d5a73ab2ca6ffb001bcf (patch)
tree8ebbd412fcecefe7a31644faa831ab07484f8693 /doc/examples/demuxing_decoding.c
parent98786aa2f05da5e785d9344a04767dfbf99c10f0 (diff)
doc/examples: do not check NULL values for avcodec_close()
avcodec_close() does nothing in case the argument is NULL. Simplify.
Diffstat (limited to 'doc/examples/demuxing_decoding.c')
-rw-r--r--doc/examples/demuxing_decoding.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/examples/demuxing_decoding.c b/doc/examples/demuxing_decoding.c
index 325c7b8cda..1b5a989471 100644
--- a/doc/examples/demuxing_decoding.c
+++ b/doc/examples/demuxing_decoding.c
@@ -369,10 +369,8 @@ int main (int argc, char **argv)
}
end:
- if (video_dec_ctx)
- avcodec_close(video_dec_ctx);
- if (audio_dec_ctx)
- avcodec_close(audio_dec_ctx);
+ avcodec_close(video_dec_ctx);
+ avcodec_close(audio_dec_ctx);
avformat_close_input(&fmt_ctx);
if (video_dst_file)
fclose(video_dst_file);