1 diff --git a/configure.ac b/configure.ac
2 index dfe149a..4a9f975 100644
5 @@ -32,6 +32,18 @@ AC_SUBST(PLATFORM)
8 # Checks for typedefs, structures, and compiler characteristics.
11 +AC_ARG_ENABLE([ext-pid],
12 + [AS_HELP_STRING([--enable-ext-pid],
13 + [enable extend pid (default is no)])],
14 + [use_ext_pid=$enableval],
17 +if test "$use_ext_pid" = "yes"; then
18 + AC_DEFINE([HAVE_EXT_PID], [1], [Define to 1 if support extend pid.])
22 # Checks for library functions.
24 diff --git a/src/Encoder.h b/src/Encoder.h
25 index 5831482..1075b90 100644
36 #include "3rdparty/trap.h"
37 @@ -30,9 +32,16 @@ private:
44 + IOCTL_SET_VPID = 11,
45 + IOCTL_SET_APID = 12,
46 + IOCTL_SET_PMTPID = 13,
53 IOCTL_START_TRANSCODING = 100,
54 IOCTL_STOP_TRANSCODING = 200