fix close fp

Origin commit data
------------------
Branch: master
Commit: d55f592586
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-11-16 (Thu, 16 Nov 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2017-11-16 18:58:13 +01:00
committed by TangoCash
parent d233ba9214
commit cb10177b2f

View File

@@ -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);