Browse Source

avisynth: Fix detection of AviSynth 2.5

In order to safely exit when the user tries to use AviSynth 2.5,
the continue_on_fail value for 2.6's functions need to be set to
1.  Otherwise, the library loader fails before the 'upgrade to
2.6' log message appears.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.7
Stephen Hutchinson Michael Niedermayer 10 years ago
parent
commit
d858c3a18f
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      libavformat/avisynth.c

+ 9
- 9
libavformat/avisynth.c View File

@@ -139,15 +139,15 @@ static av_cold int avisynth_load_library(void)
LOAD_AVS_FUNC(avs_release_video_frame, 0); LOAD_AVS_FUNC(avs_release_video_frame, 0);
LOAD_AVS_FUNC(avs_take_clip, 0); LOAD_AVS_FUNC(avs_take_clip, 0);
#ifdef USING_AVISYNTH #ifdef USING_AVISYNTH
LOAD_AVS_FUNC(avs_bits_per_pixel, 0);
LOAD_AVS_FUNC(avs_get_height_p, 0);
LOAD_AVS_FUNC(avs_get_pitch_p, 0);
LOAD_AVS_FUNC(avs_get_read_ptr_p, 0);
LOAD_AVS_FUNC(avs_get_row_size_p, 0);
LOAD_AVS_FUNC(avs_is_yv24, 0);
LOAD_AVS_FUNC(avs_is_yv16, 0);
LOAD_AVS_FUNC(avs_is_yv411, 0);
LOAD_AVS_FUNC(avs_is_y8, 0);
LOAD_AVS_FUNC(avs_bits_per_pixel, 1);
LOAD_AVS_FUNC(avs_get_height_p, 1);
LOAD_AVS_FUNC(avs_get_pitch_p, 1);
LOAD_AVS_FUNC(avs_get_read_ptr_p, 1);
LOAD_AVS_FUNC(avs_get_row_size_p, 1);
LOAD_AVS_FUNC(avs_is_yv24, 1);
LOAD_AVS_FUNC(avs_is_yv16, 1);
LOAD_AVS_FUNC(avs_is_yv411, 1);
LOAD_AVS_FUNC(avs_is_y8, 1);
#endif #endif
#undef LOAD_AVS_FUNC #undef LOAD_AVS_FUNC




Loading…
Cancel
Save