Skip to content

Instantly share code, notes, and snippets.

@Noilednad
Noilednad / atomic.c
Created March 15, 2017 12:26 — forked from nazgob/atomic.c
atomic variables on gcc / linux
// http://www.alexonlinux.com/multithreaded-simple-data-type-access-and-atomic-variables
// gcc -lpthread -D_GNU_SOURCE -o atomic atomic.c
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
#include <sched.h>
#include <linux/unistd.h>
#include <sys/syscall.h>
@Noilednad
Noilednad / NOTES.txt
Created April 15, 2017 11:24 — forked from zimbatm/NOTES.txt
MP4 moov header debug
Debug notes:
# On HEAD ( f821f98126595002c8cb7a5f17521908d746dc8a )
wget http://ffmpeg-debug.s3.amazonaws.com/1050-moov-header-size/moov-header-sample.mp4
ffmpeg -i moov-header-sample.mp4 -acodec copy -vcodec copy -y ffmpeg.mp4
MP4Box -inter 500 -out mp4box.mp4 ffmpeg.mp4
qt-faststart ffmpeg.mp4 /dev/null | grep 'moov '
# moov 1712220 7809