Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 17th January 2010, 22:19   #1  |  Link
Jeremy Duncan
Didée Fan
 
Jeremy Duncan's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 1,079
How would you make this code 64 bit compatible?

Here is the original file. It's from the svn for ffdshow trunk
link

Here is the Diff File code. Note it's for x86 machines.
Code:
Index: src/imgFilters/avisynth/TimgFilterAvisynth.h
===================================================================
--- src/imgFilters/avisynth/TimgFilterAvisynth.h (revision 2975)
+++ src/imgFilters/avisynth/TimgFilterAvisynth.h (working copy)
@@ -99,7 +99,12 @@
 
    static AVS_VideoFrame* AVSC_CC get_frame(AVS_FilterInfo *, int n);
    static int AVSC_CC get_parity(AVS_FilterInfo *, int n) {return 0;}
-   static int AVSC_CC set_cache_hints(AVS_FilterInfo *, int cachehints, int frame_range) {return 0;}
+   static int AVSC_CC set_cache_hints(AVS_FilterInfo *_this, int cachehints, int frame_range)
+   {
+//    if (cachehints == 0x8666 && frame_range) // identify as Cache instance
+//     *(int*)frame_range = (int)(INT_PTR)_this;
+    return 0;
+   }
    static void AVSC_CC free_filter(AVS_FilterInfo *);
 
   public:
The diff file I made is in post #10
__________________
When I get tired during work with dvd stuff i think of River Tamm (Summer Glau's character). And the beauty that is Serenity.

Last edited by Jeremy Duncan; 20th January 2010 at 08:18.
Jeremy Duncan is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:29.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.