Commit b37dcfb6 authored by Julian Scheel's avatar Julian Scheel Committed by Jean-Baptiste Kempf

mmal/codec: Fall back to dts if pts is no available

If a container does not provide pts fall back to use the provided dts instead.
This is sometimes seen with mp4 and mov containers.
Signed-off-by: Julian Scheel's avatarJulian Scheel <>
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 73689dd3
......@@ -671,7 +671,7 @@ static picture_t *decode(decoder_t *dec, block_t **pblock)
buffer->cmd = 0;
buffer->pts = block->i_pts;
buffer->pts = block->i_pts != 0 ? block->i_pts : block->i_dts;
buffer->dts = block->i_dts;
buffer->alloc_size = sys->input->buffer_size;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment