view tests/refupdate.sh @ 34540:2b07cfa69882

Use avformat_new_stream. While av_new_stream still exists in ffmpeg avformat.h, the implementation was removed so we can't really use it anymore.
author reimar
date Sat, 28 Jan 2012 13:06:59 +0000
parents 6dc79618ec0e
children
line wrap: on
line source

#!/bin/sh
# updates all changed/new results in ref/
find res -name '*.bad' | while read bad_res ; do
  ref_file="ref/${bad_res#res/}"
  ref_file="${ref_file%.bad}"
  mkdir -p "$(dirname "$ref_file")"
  cp "$bad_res" "$ref_file"
done