From cb10177b2f38a18382a92eab965b0afef724960a Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 16 Nov 2017 18:58:13 +0100 Subject: [PATCH] fix close fp Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/d55f59258637585146e4343b8d8f0a7d3cd04b12 Author: Jacek Jendrzej Date: 2017-11-16 (Thu, 16 Nov 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libarmbox/video.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarmbox/video.cpp b/libarmbox/video.cpp index 1d27454..3eaac62 100644 --- a/libarmbox/video.cpp +++ b/libarmbox/video.cpp @@ -254,8 +254,8 @@ int image_to_mpeg2(const char *image_name, const char *encode_name) /* add sequence end code to have a real mpeg file */ uint8_t endcode[] = { 0, 0, 1, 0xb7 }; fwrite(endcode, 1, sizeof(endcode), fp); - fclose(fp); } + fclose(fp); } avcodec_close(codecContext); av_free_packet(&packet);