| 1 | #!/bin/sh
|
|---|
| 2 |
|
|---|
| 3 | set -euo pipefail
|
|---|
| 4 |
|
|---|
| 5 | set -x
|
|---|
| 6 |
|
|---|
| 7 | # To:
|
|---|
| 8 | # - build with debug info for stack traces and analysis
|
|---|
| 9 | # - work around valgrind not supporting avx512, causing an illegal instruction report:
|
|---|
| 10 | # configure mplayer as follows:
|
|---|
| 11 | # ./configure --enable-debug=3 --extra-cflags=-mno-avx512f
|
|---|
| 12 |
|
|---|
| 13 | gcc subtest.c -o subtest
|
|---|
| 14 |
|
|---|
| 15 | ./subtest sub
|
|---|
| 16 |
|
|---|
| 17 | ffmpeg -y -f lavfi -i color=size=2x2:rate=25:color=black -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -t 1 subtest.mp4
|
|---|
| 18 |
|
|---|
| 19 | for i in $(seq 0 92); do
|
|---|
| 20 | valgrind ~/repos/svn/mplayer/mplayer -vo jpeg -vobsub sub-$i -vobsubid 0 subtest.mp4
|
|---|
| 21 | done
|
|---|
| 22 |
|
|---|