mirror of https://github.com/mgba-emu/mgba.git
Video: Fix an issue with very long filenames
This commit is contained in:
parent
3426f953da
commit
248dbba88d
1
CHANGES
1
CHANGES
|
@ -22,6 +22,7 @@ Bugfixes:
|
||||||
- Util: Fix resource leak in UTF-8 handling code
|
- Util: Fix resource leak in UTF-8 handling code
|
||||||
- VFS: Fix resource leaks if some allocations fail
|
- VFS: Fix resource leaks if some allocations fail
|
||||||
- Debugger: Fix boundary conditions in tab completion
|
- Debugger: Fix boundary conditions in tab completion
|
||||||
|
- Video: Fix an issue with very long filenames
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Show multiplayer numbers in window title
|
- Qt: Show multiplayer numbers in window title
|
||||||
- Qt: Solar sensor can have shortcuts set
|
- Qt: Solar sensor can have shortcuts set
|
||||||
|
|
|
@ -202,7 +202,8 @@ bool FFmpegEncoderOpen(struct FFmpegEncoder* encoder, const char* outfile) {
|
||||||
avformat_alloc_output_context2(&encoder->context, oformat, 0, outfile);
|
avformat_alloc_output_context2(&encoder->context, oformat, 0, outfile);
|
||||||
#else
|
#else
|
||||||
encoder->context = avformat_alloc_context();
|
encoder->context = avformat_alloc_context();
|
||||||
strncpy(encoder->context->filename, outfile, sizeof(encoder->context->filename));
|
strncpy(encoder->context->filename, outfile, sizeof(encoder->context->filename) - 1);
|
||||||
|
encoder->context->filename[sizeof(encoder->context->filename) - 1] = '\0';
|
||||||
encoder->context->oformat = oformat;
|
encoder->context->oformat = oformat;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue