[vlc-devel] [vlc-commits] se/archive: fix seeking with SEEK_END

Jean-Baptiste Kempf jb at videolan.org
Fri Dec 1 18:33:42 CET 2017


Hello,

If you cherry-pick a patch from someone else, please sign-off the
cherry-pick.

Yes, here, it was signed-off on the main branch, but still.

On Fri, 1 Dec 2017, at 17:30, Pierre Lamot wrote:
> vlc/vlc-3.0 | branch: master | Pierre Lamot <pierre at videolabs.io> | Fri
> Dec  1 17:21:43 2017 +0100| [879d9501496d3c45ffb30a73847fd4fe5eb704a4] |
> committer: Thomas Guillem
> 
> se/archive: fix seeking with SEEK_END
> 
> Fixes #19133
> 
> Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> 
> (cherry picked from commit 777514b42f0a3cea41fef9ee770831be03adeac5)
> 
> > http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=879d9501496d3c45ffb30a73847fd4fe5eb704a4
> ---
> 
>  modules/stream_extractor/archive.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/modules/stream_extractor/archive.c
> b/modules/stream_extractor/archive.c
> index 9796d0b7bd..4fdb3b1378 100644
> --- a/modules/stream_extractor/archive.c
> +++ b/modules/stream_extractor/archive.c
> @@ -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();
>  
>      }
> 
> _______________________________________________
> vlc-commits mailing list
> vlc-commits at videolan.org
> https://mailman.videolan.org/listinfo/vlc-commits


-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list