diff options
-rw-r--r-- | decoders/ffmpeg_decoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoders/ffmpeg_decoder.cpp b/decoders/ffmpeg_decoder.cpp index 7b7397f..7a34724 100644 --- a/decoders/ffmpeg_decoder.cpp +++ b/decoders/ffmpeg_decoder.cpp @@ -24,8 +24,8 @@ DecoderFFmpeg::DecoderFFmpeg(const std::string& filename) { } DecoderFFmpeg::~DecoderFFmpeg() { - av_close_input_file(lavf_ctx); avcodec_close(lavc_ctx); + av_close_input_file(lavf_ctx); } std::size_t DecoderFFmpeg::read(char* buf, std::size_t buf_size) { |