Commit 777514b4 authored by Pierre Lamot's avatar Pierre Lamot Committed by Thomas Guillem

se/archive: fix seeking with SEEK_END

Fixes #19133
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent f6bbe4ec
......@@ -167,7 +167,7 @@ static la_int64_t libarchive_seek_cb( libarchive_t* p_arc, void* p_obj,
{
case SEEK_SET: whence_pos = 0; break;
case SEEK_CUR: whence_pos = vlc_stream_Tell( p_source ); break;
case SEEK_END: whence_pos = stream_Size( p_source ) - 1; break;
case SEEK_END: whence_pos = stream_Size( p_source ); break;
default: vlc_assert_unreachable();
}
......
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