]> git.sesse.net Git - ffmpeg/blobdiff - doc/examples/demuxing_decoding.c
vp9: add fate sample for parallelmode.
[ffmpeg] / doc / examples / demuxing_decoding.c
index 325c7b8cda76017f59593745c80750a7b181e221..1b5a9894710a3d3b7afe1f96f1b705f1600cbcd2 100644 (file)
@@ -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);