Menu

#70 joining mpgs fails with 64-bit off_t

v1.3.1
closed
None
5
2005-11-16
2005-09-30
Anonymous
No

I've never managed to successfully join a set of mpg
files together, always getting the dreaded "failed,
range results in an empty chunk" error regardless of
range I used.

Building a debugging version of mpgtx shows what the
problem is:
Now processing vid-01.mpg 1/5...
new Chunk: from:0xffffffff00000000, to:0x4c9004

The chunk->from is being initialised to '-1' in
chunkTab.cxx, but this doesn't sign-extend to 64 bits.

Casting it to (off_t) doesn't appear to work, but
setting it to 0 does. I've attached a patch.

This should solve Bug ID 863345 (which has been open
nearly 2 years !:-)

Discussion

  • Nobody/Anonymous

    diff -u patch

     
  • Erik Schanze

    Erik Schanze - 2005-11-01
    • assigned_to: nobody --> schanzi_
    • status: open --> pending
     
  • Erik Schanze

    Erik Schanze - 2005-11-01

    Logged In: YES
    user_id=1161991

    Hi Anonymous!

    I could not reproduce your reported bug, so please give me
    additional info.
    What does "64-bit off_t" mean?
    Building with LFS? This is what Makefile usualy do.
    What is special on your case?
    What OS on which architecture do you use.
    How did you build mpgtx?
    How did you invoke it and what exactly is the output?

    Your patch fixes only this issue, but break other things.
    A better solution should be found.

    Kindly regards,
    Erik

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.