Problem with the MPEG1 video format

Hi :) !

The sample code is given :

......................
......................
CodecInfo ci;
OSErr err;
err = GetCodecInfo (&ci, cType, 0); // cType = 1831958048 ( MPEG1 video format )
if( err != noErr ) err == -8961 // noCodecErr ???
ATLASSERT(0); // Error !!!
......................
......................

where is the mistake? What should i do?
Parents
  • Sorry :) !

    Source code must be such :

    [CODE]......................
    ......................
    CodecInfo ci;
    OSErr err;
    err = GetCodecInfo (&ci, cType, 0); // cType = 1831958048 ( MPEG1 video format )
    if( err != noErr ) // err == -8961 noCodecErr ???
    ATLASSERT(0);
    ......................
    ......................[/CODE]

    I open different types of MOV-files.
    When сType == 1986618469 (png, h261, Photo JPEG and other video formats ) - No Error!

    If cType == 1831958048 (MPEG1 video format ) - Error!

    Why? :dunno:
Reply
  • Sorry :) !

    Source code must be such :

    [CODE]......................
    ......................
    CodecInfo ci;
    OSErr err;
    err = GetCodecInfo (&ci, cType, 0); // cType = 1831958048 ( MPEG1 video format )
    if( err != noErr ) // err == -8961 noCodecErr ???
    ATLASSERT(0);
    ......................
    ......................[/CODE]

    I open different types of MOV-files.
    When сType == 1986618469 (png, h261, Photo JPEG and other video formats ) - No Error!

    If cType == 1831958048 (MPEG1 video format ) - Error!

    Why? :dunno:
Children
No Data