asfdemux: Use the average frame duration for buffers without a duration.
authorEdward Hervey <bilboed@bilboed.com>
Sun, 28 Jun 2009 15:04:00 +0000 (17:04 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Sun, 28 Jun 2009 15:33:51 +0000 (17:33 +0200)
commit725da8579bae51f256812666651555f3f0f1be50
treee37423b4b371addbb5cfa852943c5bff7f3fe06f
parent99d9b3438534a303e7b933ad4c755dca7bcd66d0
asfdemux: Use the average frame duration for buffers without a duration.

This will still cause some timestamp jitter, but giving a hint as to the duration
rather than nothing seems to be a better idea.
Also, this allows some scenarios (like remuxing with asfmux) to estimate the total
duration using the accumulated packet duration (which will be correct).
gst/asfdemux/gstasfdemux.c