diff options
| -rw-r--r-- | src/ffmpeg.zig | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ffmpeg.zig b/src/ffmpeg.zig index 6846eb1..a856f54 100644 --- a/src/ffmpeg.zig +++ b/src/ffmpeg.zig @@ -154,7 +154,6 @@ pub const AVDecoder = struct { try check(c.avcodec_parameters_to_context(codec_ctx, &codec_par)); try check(c.avcodec_open2(codec_ctx, codec, null)); - errdefer check(c.avcodec_close(codec_ctx)) catch unreachable; const sws_ctx = c.sws_getContext( codec_par.width, @@ -196,7 +195,6 @@ pub const AVDecoder = struct { c.av_frame_free(rgba_ptr); c.sws_freeContext(self.sws_ctx); - check(c.avcodec_close(self.codec_ctx)) catch unreachable; c.avcodec_free_context(&self.codec_ctx); allocator.destroy(self); |
