GetMediaType Causing Crash

From: Dave J. (dju_at_nospam.com)
Date: 06/29/04


Date: Tue, 29 Jun 2004 00:43:19 GMT

Hi,

I'm having a problem with GetMediaType that is crashing in quartz.dll.

I have a transform filter based on CTransformFilter. Ever since I modified the
filter's GetMediaType function to change the output media's dimensions, it
crashes in quartz.dll depending on the size that I've arbitrarily chosen for the
output format.

 The filter supports one media type of RGB24. The input size is 720 x 480. The
output size that causes the crash is 1507 x 240. But if I use an output size of
1440 x 240 then there's no crash. So the output media size effects whether
there's a crash or not. It looks like the crash happens whenever I use an output
buffer size that is larger than the input buffer.

If I change the dimensions of the output media type, do I have to override
CTransformFilter::InitializeOutputSample? I suspect that the output buffer is
not the correct size. (Just thought of that one. I'll go look for that after I
get done writing this).

I can paste the code for CMyTransformFilter::GetMediaType here if anyone needs
to see it.

Thanks for any help,
Dave



Relevant Pages

  • Re: GetMediaType Causing Crash
    ... >filter's GetMediaType function to change the output media's dimensions, ... >1440 x 240 then there's no crash. ... So the output media size effects whether ... >buffer size that is larger than the input buffer. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Strange CVSListBox behavior
    ... may be CVSListBox is somehow incompatible with non-unicode apps ... and buffer is allocated of 0x16 bytes but buffer is ... I've never seen a failure like this on GetWindowText. ... the word "crash" in terms of their useful content. ...
    (microsoft.public.vc.mfc)
  • Re: [PATCH RFC] ext3 data=guarded v5
    ... buffer onto a list of things that must be written before a commit. ... Another way to avoid exposing stale data after a crash is to wait until ... a workqueue where the real work of updating the on disk i_size is done. ... When we start tracking guarded buffers on a given inode, ...
    (Linux-Kernel)
  • Re: CByteBuffer implementation passed between modules
    ... In many cases you get a crash at delete because there is a copy happening ... the buffer. ... CByteBuffer a, b; ... a.Set(buf, 10); ...
    (microsoft.public.vc.mfc)
  • Re: re:file sink
    ... > Hi Jonathan Benedicto, ... > can you help me with AllocateDataUnit function mine is crash. ... > thing wrong with buffer. ...
    (microsoft.public.windowsmedia.sdk)