Menu

#41 Bug in OggVExportMovie.c -- *FromProcedures*() is impossible

open
nobody
5
2005-03-11
2005-03-11
No

Scenario: Use MovieExportFromProceduresToDataRef()-api
with the OggVorbis QuickTime component.

Expected result: Successful conversion to an
OggVorbis-file.

Actual result: An empty OggVorbis-file.

Details/Analysis:

FillBufferDataProc requires that globals->endTime is
set to something meaningful, but the only way to set it
is to call the premade movie export functionality in
OggVExportToDataRef().

If you use the raw
MovieExportFromProceduresToDataRef()-api then
globals->endTime is always and immutably zero and will
fail the if-statement at the beginning of
FillBufferDataProc() causing erraneous end-of-data
state and finally an empty output file.

Sorry I entered this bug under support first.

Discussion

  • Anonymous

    Anonymous - 2005-03-15

    Logged In: YES
    user_id=802016

    No comment?

    This patch is a possible solution.
    It may not be elegant, it may not be what the original coder
    intended, but it works.

    To apply:

    1. cd to the folder where you did your "cvs co qtoggvorbis"
    2. patch -p3 < /my/path/to/ExportFromProcFix.patch

     
  • Anonymous

    Anonymous - 2005-03-16

    Logged In: YES
    user_id=802016

    I put a new patch up, there was a problem with the old one.
    Sorry for any inconvenience. :)
    [Like anyone reads this crap anyway.]

    This patch will make the qtoggvorbis component work for
    programs that use the
    MovieExportFromProceduresToDataRef()-api to export audio.

    To apply (you need a version of gnu diffutils):
    1. In a shell/command prompt, cd into the qtoggvorbis folder
    2. patch -p1 < /my/path/to/ExportFromProcFix2.patch

     
  • Anonymous

    Anonymous - 2005-03-16
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.