Do all error checking first in dav1d_send_data().

Don't modify the Dav1dContext 'c' until all error checking is done.
30 jobs for patch-1 in 13 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Style
failed #376185
amd64 docker
style-check

00:00:13

 
  Build
skipped #376196
amd64 docker
build-android-aarch64
skipped #376195
amd64 docker
build-android-armv7
skipped #376186
amd64 avx2 docker
build-debian
skipped #376197
aarch64 docker
build-debian-aarch64
skipped #376198
aarch64 docker
build-debian-aarch64-clang-5
skipped #376201
armv7 docker
build-debian-armv7
skipped #376202
armv7 docker
build-debian-armv7-clang-5
skipped #376189
amd64 docker
build-debian-examples
skipped #376204
ppc64le docker
build-debian-ppc64le
skipped #376187
amd64 docker
build-debian-static
skipped #376200
aarch64 docker
build-debian-werror
skipped #376188
amd64 docker
build-debian32
skipped #376199
macos
build-macos
skipped #376205
amd64 docker
build-pages
skipped #376203
amd64 docker allowed to fail
build-ubuntu-snap
skipped #376193
amd64 docker
build-win-arm32
skipped #376194
amd64 docker
build-win-arm64
skipped #376190
amd64 docker
build-win32
skipped #376191
amd64 docker
build-win32-unaligned-stack
skipped #376192
amd64 docker
build-win64
 
  Test
skipped #376206
amd64 docker
test-debian
skipped #376212
aarch64 docker
test-debian-aarch64
skipped #376214
armv7 docker
test-debian-armv7-clang-5
skipped #376208
amd64 docker
test-debian-asan
skipped #376209
amd64 docker
test-debian-msan
skipped #376213
ppc64le docker
test-debian-ppc64le
skipped #376210
amd64 docker
test-debian-ubsan
skipped #376207
amd64 avx2 docker
test-debian-unaligned-stack
skipped #376211
amd64 avx2 docker
test-win64
 
Name Stage Failure
failed
style-check Style
$ git grep -I -n -i "david" -- . ':(exclude)THANKS.md' ':(exclude).gitlab-ci.yml' && exit 1
$ git grep -I -l -z "" -- . ':(exclude)*/compat/*' | while IFS= read -r -d '' i; do if [ -n "$(tail -c 1 "$i")" ]; then echo "No newline at end of $i"; exit 1; fi; done
$ git remote rm upstream 2> /dev/null || true
$ git remote add upstream https://code.videolan.org/videolan/dav1d.git
$ git fetch -q upstream master
$ for i in $(git rev-list HEAD ^upstream/master); do echo "Checking commit message of $i"; msg="$(git log --format=%B -n 1 $i)"; if [ -n "$(echo "$msg" | awk "NR==2")" ]; then echo "Malformed commit message in $i, second line must be empty"; exit 1; fi; if echo "$msg" | head -1 | grep -q '\.$'; then echo "Malformed commit message in $i, trailing period in subject line"; exit 1; fi; done
Checking commit message of 2b9ccea4258c1930385e87aaa322900673e11228
Malformed commit message in 2b9ccea4258c1930385e87aaa322900673e11228, trailing period in subject line
ERROR: Job failed: exit code 1