diff options
author | jstebbins <[email protected]> | 2008-07-30 00:06:38 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-07-30 00:06:38 +0000 |
commit | b36a0fde822b0f62a37a4f2ba361b99b40eb3ee2 (patch) | |
tree | c0794b672e116f7c51f818cf5a518e9f40943565 /gtk | |
parent | 9cac61c6debd505c7a4fb88c01d6dd2342896a8b (diff) |
LinGui: hack to prevent segfault caused by avpicture_deinterlace.
sets libavcodecs mm_flags by calling mm_support()
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1593 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c index 541c5d973..d9352a185 100644 --- a/gtk/src/main.c +++ b/gtk/src/main.c @@ -461,6 +461,10 @@ watch_volumes(signal_user_data_t *ud) } #endif +// Hack to avoid a segfault in libavcodec +extern int mm_flags; +int mm_support(); + int main (int argc, char *argv[]) { @@ -471,6 +475,7 @@ main (int argc, char *argv[]) GError *error = NULL; GOptionContext *context; + mm_flags = mm_support(); #ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); |