mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
oggdemux: Fix duration calculation for truncated files
If the last page of a stream has a granulepos of -1, that is, it doesn't complete a packet, we need to continue to search for the last granulepos.
This commit is contained in:
parent
df9b8b57b3
commit
f126617dbd
1 changed files with 3 additions and 1 deletions
|
@ -2617,7 +2617,9 @@ gst_ogg_demux_read_end_chain (GstOggDemux * ogg, GstOggChain * chain)
|
|||
last_granule = granulepos;
|
||||
last_pad = pad;
|
||||
}
|
||||
done = TRUE;
|
||||
if (last_granule != -1) {
|
||||
done = TRUE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue