This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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> |