~ubuntu-branches/ubuntu/wily/mkvtoolnix/wily

« back to all changes in this revision

Viewing changes to src/common/hacks.cpp

  • Committer: Package Import Robot
  • Author(s): Christian Marillat
  • Date: 2015-04-26 10:36:27 UTC
  • mfrom: (1.1.29) (4.2.45 sid)
  • Revision ID: package-import@ubuntu.com-20150426103627-k53p8hrai2ynikaa
Tags: 7.8.0-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
   mkvmerge -- utility for splicing together matroska files
3
3
   from component media subtypes
4
4
 
5
 
   Distributed under the GPL
 
5
   Distributed under the GPL v2
6
6
   see the file COPYING for details
7
7
   or visit http://www.gnu.org/copyleft/gpl.html
8
8
 
13
13
 
14
14
#include "common/common_pch.h"
15
15
 
16
 
#include <string.h>
17
 
 
18
16
#include "common/base64.h"
19
17
#include "common/hacks.h"
20
18
#include "common/strings/editing.h"
35
33
  { ENGAGE_ALLOW_AVC_IN_VFW_MODE,        "allow_avc_in_vfw_mode"        },
36
34
  { ENGAGE_KEEP_BITSTREAM_AR_INFO,       "keep_bitstream_ar_info"       },
37
35
  { ENGAGE_NO_SIMPLE_BLOCKS,             "no_simpleblocks"              },
38
 
  { ENGAGE_OLD_AAC_CODECID,              "old_aac_codecid"              },
39
36
  { ENGAGE_USE_CODEC_STATE_ONLY,         "use_codec_state_only"         },
40
37
  { ENGAGE_ENABLE_TIMECODE_WARNING,      "enable_timecode_warning"      },
41
 
  { ENGAGE_MERGE_TRUEHD_FRAMES,          "merge_truehd_frames"          },
42
38
  { ENGAGE_REMOVE_BITSTREAM_AR_INFO,     "remove_bitstream_ar_info"     },
43
39
  { ENGAGE_VOBSUB_SUBPIC_STOP_CMDS,      "vobsub_subpic_stop_cmds"      },
44
40
  { ENGAGE_NO_CUE_DURATION,              "no_cue_duration"              },
45
41
  { ENGAGE_NO_CUE_RELATIVE_POSITION,     "no_cue_relative_position"     },
 
42
  { ENGAGE_NO_DELAY_FOR_GARBAGE_IN_AVI,  "no_delay_for_garbage_in_avi"  },
46
43
  { 0,                                   nullptr },
47
44
};
48
45
static std::vector<bool> s_engaged_hacks(ENGAGE_MAX_IDX + 1, false);
68
65
      mxinfo(Y("Valid hacks are:\n"));
69
66
      for (hidx = 0; s_available_hacks[hidx].name; ++hidx)
70
67
        mxinfo(boost::format("%1%\n") % s_available_hacks[hidx].name);
71
 
      mxexit(0);
 
68
      mxexit();
72
69
 
73
70
    } else if (engage_args[aidx] == "cow") {
74
71
      const std::string initial = "ICAgICAgICAgIChfXykKICAgICAgICAgICgqKikg"
79
76
      memset(correction, 0, 200);
80
77
      base64_decode(initial, (unsigned char *)correction);
81
78
      mxinfo(correction);
82
 
      mxexit(0);
 
79
      mxexit();
83
80
    }
84
81
 
85
82
  for (aidx = 0; engage_args.size() > aidx; aidx++) {