[Ffmpeg-devel] some quick questions about swscaler integration

Colin Ward lists
Wed Mar 22 13:01:49 CET 2006

M?ns Rullg?rd wrote:


> Now that you mention it, maybe the Colin was talking about a situation
> like this:
> a.h:
> struct a {
>     struct b *b;
> };
> b.h:
> struct b {
>     struct a *a;
> };
> In this case, those files are interdependent enough that they should
> probably be merged.  Alternatively, both structs can be declared in a
> separate header that both a.h and b.h #include.
> If you start getting more complicated circular dependencies, it is
> time to rethink your design.

   Yes, that is exactly the situation I was talking about.  And yes, in 
that case it is certainly time to rethink one's design.  But that can be 
painful when the project is up to an advanced stage and has been worked 
on by many people.

   I don't disagree with you: There is nothing wrong with #includes 
within #includes.  It's just that saying "Anyone who disagrees with this 
is a moron" is rather harsh!  The topic isn't completely black and white.

[Hitman/Code HQ - 6502/z80/68000/604e/80x86/ARM coder - Amiga rulez!]
[VZ-200/VIC-20/MZ-700/c16/c64*10/c128*8/Plus-4/CPC464/CD32/500*2    ]
[600/1000/1200*2/A4000/SNES/N64/Dreamcast/Athlon 1100/AmigaOne      ]
[Assembly Language: The most fun you can have with your clothes on! ]

More information about the ffmpeg-devel mailing list