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)
committerStephen Hutchinson <qyot27@gmail.com>
Mon, 19 Aug 2013 03:13:27 +0000 (23:13 -0400)
commit8d9568b4a1a28ce024bfc92434049a21c182fad3
tree7801ad106efca10f0ff9e46e07c93bebd95cf9c1
parentacf511de34e0b79fff0183e06ed37f1aa8dc3d94
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