| CODENOTIFIER | HelpYou are not signed inSign in |
Project: FFmpeg2theora
Revision: 14979
Author: j
Date: 29 May 2008 06:31:14
Changes: * init framerate
* remove avpicture_free that causes segfaults
* add debug option to SConstruct
| ... | ...@@ -12,4 +12,5 @@ | |
| 12 | 12 | opts.AddOptions( |
| 13 | 13 | BoolOption('static', 'Set to 1 for static linking', 0), |
| 14 | BoolOption('debug', 'Set to 1 to enable debugging', 0), | |
| 14 | 15 | ('prefix', 'install architecture-independent files in', '/usr/local'), |
| 15 | 16 | ('bindir', 'user executables', 'PREFIX/bin'), |
| ... | ...@@ -43,6 +44,6 @@ | |
| 43 | 44 | env.Append(LINKFLAGS = Split('$APPEND_LINKFLAGS')) |
| 44 | 45 | |
| 45 | #if env['CC'] == 'gcc': | |
| 46 | # env.Append(CCFLAGS=["-g", "-O2", "-Wall"]) | |
| 46 | if env['debug'] and env['CC'] == 'gcc': | |
| 47 | env.Append(CCFLAGS=["-g", "-O2", "-Wall"]) | |
| 47 | 48 | |
| 48 | 49 | def CheckPKGConfig(context, version): |
| ... | ...@@ -124,5 +124,4 @@ | |
| 124 | 124 | static void frame_dealloc (AVFrame *frame) { |
| 125 | 125 | if (frame) { |
| 126 | avpicture_free((AVPicture*)frame); | |
| 127 | 126 | av_free(frame); |
| 128 | 127 | } |
| ... | ...@@ -1042,4 +1041,7 @@ | |
| 1042 | 1041 | AVRational framerate; |
| 1043 | 1042 | |
| 1043 | framerate.num = -1; | |
| 1044 | framerate.den = 1; | |
| 1045 | ||
| 1044 | 1046 | p = strchr(arg, ':'); |
| 1045 | 1047 | if (!p) { |