avisynth: Support video input from AviSynth 2.5 properly.
authorStephen Hutchinson <qyot27@gmail.com>
Fri, 16 Aug 2013 21:29:55 +0000 (17:29 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 17 Aug 2013 12:27:25 +0000 (14:27 +0200)
commit2c25e83b1d022ab36842d77749024b3d720a4227
treeb99e190959a3ff43b6caa4307cd6922474fa9026
parent9640ea1da4e0893001031c6d88aa48f350cc9956
avisynth: Support video input from AviSynth 2.5 properly.

Uses the 2.5 compatibility header included with the variant of
FFMS2 that uses AviSynth's C-interface. A copy of this header is
now provided in compat/avisynth.

avs_get_row_size_p and avs_get_height_p changed between versions
2.5 and 2.6. Since the avisynth_c.h header that avformat uses
assumes AviSynth 2.6, it would cause 2.5 to crash if given any
kind of real video (the Version() function was known to work,
though).

AvxSynth was unaffected by this issue because, despite being based
on AviSynth 2.5.8 and using 2.5.8's interface version number of 3,
it actually uses 2.6's versions of these functions.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
compat/avisynth/avisynth_c_25.h [new file with mode: 0644]
libavformat/avisynth.c