3월, 2014의 게시물 표시

pts sample

avconv.c | 205 ++++++++++++++++++++++++++++++++------------------------------ 1 files changed, 105 insertions(+), 100 deletions(-) diff --git a/avconv.c b/avconv.c index 817c0cf..2246851 100644 --- a/avconv.c +++ b/avconv.c @@ -141,8 +141,7 @@ static float dts_delta_threshold = 10; static int print_stats = 1; static uint8_t *audio_buf; -static uint8_t *audio_out; -static unsigned int allocated_audio_out_size, allocated_audio_buf_size; +static unsigned int allocated_audio_buf_size; #define DEFAULT_PASS_LOGFILENAME_PREFIX "av2pass" @@ -208,6 +207,7 @@ typedef struct OutputStream { AVBitStreamFilterContext *bitstream_filters; AVCodec *enc; int64_t max_frames; + AVFrame *output_frame; /* video only */ int video_resample; @@ -680,6 +680,13 @@ void exit_program(int ret) } output_streams[i].bitstream_filters = NULL; + if (output_streams[i].output_frame) { + AVFrame *frame = output_streams[i].output_fram

Swap Command and Alt keys on USB keyboard

Swap Command and Alt keys on USB keyboard  Using the IORegistryExplorer to check the internal and USB keyboard settings I found another property of the provider, alt_handler_id , set for the internal keyboard. In the same way I added the property Swap command and alt for the IOHIDEventDriver as follows: First, open the property list for editing (as system) using a text editor capable of authenticating. I just used vi: sudo vi /System/Library/Extensions//IOHIDFamily.kext/Contents/PlugIns/IOHIDEventDriver.kext/Contents/Info.plist Note that the above path can be used with BBEdit or TextWrangler as well. Then make the following addition to the plist file: ... IOKitPersonalities Swap command and alt 1 .... .... After running touch /System/Library/Extensions in Terminal followed by a reboot, the USB keyboard's Alt and Command keys were changed. Furthermore, with this ki