projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Credit ffmpeg team - security fix for ffmpeg 5.1
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
cinelerra
/
file.C
diff --git
a/cinelerra-5.1/cinelerra/file.C
b/cinelerra-5.1/cinelerra/file.C
index 0406e174f4f24bb58f81c593b2856e412e22a48d..2a1330059cd468069f5e248f6343846445776e8f 100644
(file)
--- a/
cinelerra-5.1/cinelerra/file.C
+++ b/
cinelerra-5.1/cinelerra/file.C
@@
-390,7
+390,9
@@
const char *File::default_probes[] = {
#ifdef HAVE_GIFLIB
"GIF",
#endif
#ifdef HAVE_GIFLIB
"GIF",
#endif
+#ifdef HAVE_LIBDPX
"DPX",
"DPX",
+#endif
#ifdef HAVE_OPENEXR
"EXR",
#endif
#ifdef HAVE_OPENEXR
"EXR",
#endif
@@
-402,7
+404,9
@@
const char *File::default_probes[] = {
"OGG",
"Vorbis",
#endif
"OGG",
"Vorbis",
#endif
+#ifdef HAVE_LIBZMPEG
"MPEG",
"MPEG",
+#endif
"EDL",
"FFMPEG_Late",
};
"EDL",
"FFMPEG_Late",
};
@@
-1662,7
+1666,14
@@
int File::record_fd()
void File::get_exe_path(char *result, char *bnp)
{
// Get executable path, basename
void File::get_exe_path(char *result, char *bnp)
{
// Get executable path, basename
+#if !defined(__FreeBSD__)
int len = readlink("/proc/self/exe", result, BCTEXTLEN-1);
int len = readlink("/proc/self/exe", result, BCTEXTLEN-1);
+#else
+ char exe_path[BCTEXTLEN];
+ sprintf(exe_path,"/proc/%d/file",getpid());
+ int len = readlink(exe_path, result, BCTEXTLEN-1);
+#endif
+
if( len >= 0 ) {
result[len] = 0;
char *ptr = strrchr(result, '/');
if( len >= 0 ) {
result[len] = 0;
char *ptr = strrchr(result, '/');