X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=doc%2Fexamples%2Fdemuxing_decoding.c;h=1b5a9894710a3d3b7afe1f96f1b705f1600cbcd2;hb=1d6bb21348711a05f25123b9aad065a08e1e5b58;hp=325c7b8cda76017f59593745c80750a7b181e221;hpb=074bae745d9d99d94ef99f870d0a6bb50d1e7a0b;p=ffmpeg diff --git a/doc/examples/demuxing_decoding.c b/doc/examples/demuxing_decoding.c index 325c7b8cda7..1b5a9894710 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);