1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-04 09:11:33 +02:00
Commit Graph

45 Commits

Author SHA1 Message Date
Francois Cartegnie
4314526b99 vlc_bits: remove bs_remain 2020-07-24 11:22:55 +02:00
Francois Cartegnie
e4946a5b6c vlc_bits: add bs_error for truncated reads 2020-07-24 11:22:55 +02:00
Rémi Denis-Courmont
e45eb074d0 bits: remove table for trivial masking 2020-04-04 20:41:40 +03:00
Rémi Denis-Courmont
d2307f30a6 Fix indentation 2020-04-02 17:11:02 +03:00
Steve Lhomme
5363279805 remove the $Id$ in the source code 2019-01-17 12:21:18 +01:00
Francois Cartegnie
273e38d0c3 vlc_bits: rework for custom handler pos/remain accounting 2018-08-20 16:48:20 +02:00
Francois Cartegnie
671789ae30 vlc_bits: remove bs_show 2018-08-20 16:05:30 +02:00
Francois Cartegnie
86c35629d7 vlc_bits: add shift guard on bs_read
and reject any reads > 32
2017-12-01 17:16:01 +01:00
Francois Cartegnie
7df8c931d6 vlc_bits: bs_skip ovfw (fix #17985) 2017-02-07 18:51:49 +01:00
Rémi Denis-Courmont
61eb088232 vlc_bits: fix integer overflow in signed ExpGolomb code
When bs_read_ue() returned 2^32-1, computing (val + 1) as 'int'
overflowed. With this patch, the conversion from unsigned to signed is
performed after the division by two, so that the absolute value range
is always within limits of the signed 32-bits integer type.

Also use fast types since the function are meant to be inlined.
2016-11-13 20:35:32 +02:00
Francois Cartegnie
9bad6dda37 vlc_bits: fix overflow in bs_read_ue
refs #17591
2016-11-02 15:44:47 +01:00
Steve Lhomme
98b2285f20 vlc_bits: fix a bad cast when included from C++
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2016-01-20 09:39:46 +01:00
Francois Cartegnie
bffe61d55f fix overflowing shifts (cid #1346922, cid #1253066) 2016-01-01 21:35:27 +01:00
Francois Cartegnie
e047c398d7 vlc_bits: add bs_aligned 2015-12-20 16:45:44 +01:00
Francois Cartegnie
f42374732c vlc_bits: add pf_forward
will allow to modify/convert upstream
2015-12-17 15:39:21 +01:00
Francois Cartegnie
66f3469f18 vlc_bits: add bs_remain() 2015-12-15 17:16:16 +01:00
Francois Cartegnie
b6ddadea5c vlc_bits.h: move in exp golomb bitstream decoding 2015-12-03 16:37:05 +01:00
Francois Cartegnie
4bc2db9451 split vlc_bits.h into vlc_boxes.h
Boxes/atoms functions are unrelated to bitstreams.
2015-12-03 16:37:05 +01:00
Francois Cartegnie
e6d44eed0c vlc_bits: do not allow writing by default 2015-12-03 16:37:05 +01:00
Francois Cartegnie
999d056fd6 vlc_bits: fix invalid conversion 2015-10-27 19:11:24 +01:00
Thomas Guillem
4ca4c7e8da vlc_bits: add bo_deinit 2015-07-30 13:40:38 +02:00
Felix Paul Kühne
098cd03c01 bits: cosmetics 2015-06-25 17:23:49 +02:00
Francois Cartegnie
0eba4c32a0 vlc_bits: use vlc_common and guards against failed realloc
refs #14193
2015-03-22 16:27:50 +01:00
Francois Cartegnie
e2d1ee3c0e vlc_bits.h: drop len field 2015-03-19 20:52:46 +01:00
Francois Cartegnie
7b91295fcd vlc_bits: add bo_set_64_be 2015-03-19 18:36:38 +01:00
Francois Cartegnie
a66b9dce7c vlc_bits: fix bo_set_32be 2015-03-19 18:36:37 +01:00
Felix Paul Kühne
d24751a730 vlc_bits: fail on init if block allocation fails 2015-02-03 11:38:34 +01:00
Felix Paul Kühne
6c9bc13fca include/vlc_bits: add a block based byte stream writer in a generic place based on the mp4 and avi muxers 2015-02-03 10:40:52 +01:00
Pere Orga
9abcaacf83 fix filename self-references
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-12-15 17:09:31 +02:00
Jean-Baptiste Kempf
36ab287e77 LGPL
Re-license almost all of libVLC and libVLCcore to LGPLv2.1+

This move was authorized by the developers, either:
 - by e-mail,
 - by vote at the VideoLAN Dev Days 2011,
 - on the license website,
 - in a contract, oral or written.
No objection was raised, so far.

The developers agreeing are:
  Justus Piater
  Alexis Ballier
  Alexander Bethke
  Mohammed Adnène Trojette
  Alex Converse
  Alexey Sokolov
  Alexis de Lattre
  Andre Pang
  Anthony Loiseau
  Cyril Deguet
  André Weber
  Boris Dorès
  Brieuc Jeunhomme
  Benjamin Drung
  Hugo Beauzée-Luyssen
  Benoit Steiner
  Benjamin Pracht
  Bernie Purcell
  Przemyslaw Fiala
  Arnaud de Bossoreille de Ribou
  Brad Smith
  Nick Briggs
  Christopher Rath
  Christophe Courtaut
  Christopher Mueller
  Clement Chesnin
  Andres Krapf
  Damien Fouilleul
  David Flynn
  Sebastien Zwickert
  Antoine Cellerier
  Jérôme Decoodt
  Jérome Decoodt
  Dylan Yudaken
  Eduard Babayan
  Eugenio Jarosiewicz
  Elliot Murphy
  Eric Petit
  Erwan Tulou
  Etienne Membrives
  Ludovic Fauvet
  Fabio Ritrovato
  Tobias Güntner
  Jakub Wieczorek
  Frédéric Crozat
  Francois Cartegnie
  Laurent Aimar
  Florian G. Pflug
  Felix Paul Kühne
  Frank Enderle
  Rafaël Carré
  Simon Latapie
  Gildas Bazin
  Geoffroy Couprie
  Julien / Gellule
  Gildas Bazin
  Arnaud Schauly
  Toralf Niebuhr
  Vicente Jimenez Aguilar
  Derk-Jan Hartman
  Henri Fallon
  Ilkka Ollakka
  Olivier Teulière
  Rémi Duraffort
  Jakob Leben
  Jean-Baptiste Kempf
  Jean-Paul Saman
  Jean-Philippe Grimaldi
  Jean-François Massol
  Gaël Hendryckx
  Jakob Leben
  Jean-Marc Dressler
  Jai Menon
  Johan Bilien
  Johann Ransay
  Joris van Rooij
  JP Dinger
  Jean-Philippe André
  Adrien Grand
  Juha Jeronen
  Juho Vähä-Herttua
  Kaarlo Raiha
  Kaarlo Raiha
  Kamil Baldyga
  Keary Griffin
  Ken Self
  KO Myung-Hun
  Pierre Ynard
  Filippo Carone
  Loïc Minier
  Luca Barbato
  Lucas C. Villa Real
  Lukas Durfina
  Adrien Maglo
  Marc Ariberti
  Mark Lee
  Mark Moriarty
  Martin Storsjö
  Christophe Massiot
  Michel Kaempf
  Marian Ďurkovič
  Mirsal Ennaime
  Carlo Calabrò
  Damien Lucas
  Naohiro Koriyama
  Basos G
  Pierre Baillet
  Vincent Penquerc'h
  Olivier Aubert
  Pankaj Yadav
  Paul Corke
  Pierre d'Herbemont
  Philippe Morin
  Antoine Lejeune
  Michael Ploujnikov
  Jean-Marc Dressler
  Michael Hanselmann
  Rafaël Carré
  Ramiro Polla
  Rémi Denis-Courmont
  Renaud Dartus
  Richard Shepherd
  Faustino Osuna
  Arnaud Vallat
  Rob Jonson
  Robert Jedrzejczyk
  Steve Lhomme
  Rocky Bernstein
  Romain Goyet
  Rov Juvano
  Sam Hocevar
  Martin T. H. Sandsmark
  Sebastian Birk
  Sébastien Escudier
  Vincent Seguin
  Fabio Ritrovato
  Sigmund Augdal Helberg
  Casian Andrei
  Srikanth Raju
  Hannes Domani
  Stéphane Borel
  Stephan Krempel
  Stephan Assmus
  Tony Castley
  Pavlov Konstantin
  Eric Petit
  Tanguy Krotoff
  Dennis van Amerongen
  Michel Lespinasse
  Can Wu
  Xavier Marchesini
  Sébastien Toque
  Christophe Mutricy
  Yoann Peronneau
  Yohann Martineau
  Yuval Tze
  Scott Caudle
  Clément Stenac

It is possible, that some minor piece of code was badly tracked, for
some reasons (SVN, mainly) or that some small developers did not answer.
However, as an "œuvre collective", defined as in "CPI 113-2 alinéa 3",
and seeing "Cour. Cass. 17 Mai 1978", and seeing that the editor and
the very vast majority of developers have agreed (> 99.99% of the code,
> 99% of developers), we are fine here.
2011-11-27 22:54:33 +01:00
Rémi Denis-Courmont
b9b6e60120 vlc_bits: constify 2009-08-25 21:45:02 +03:00
Rémi Denis-Courmont
f6bb739010 Revert "vlc_bits: Differentiate between writable bits stream and read only."
This reverts commit 4bfba26a61.
This broke strict C aliasing rules.
2009-08-23 20:23:08 +03:00
Pierre d'Herbemont
4bfba26a61 vlc_bits: Differentiate between writable bits stream and read only.
This fixes some const qualifier violation in modules.
2009-08-20 20:33:56 +02:00
Laurent Aimar
c90c5e3979 Optimized a bit bs_skip. 2009-01-12 22:17:02 +01:00
Jean-Paul Saman
ebd800345f Add a bunch of \file doxygen comments 2008-08-13 22:22:58 +08:00
Rémi Denis-Courmont
c0f4bfc5d8 Headers: use non-reserved identifiers for multi-inclusion protection 2008-08-11 19:34:48 +03:00
Justus Piater
5f8cd3991a Declared many static variables const
Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
2008-08-03 12:03:14 +03:00
Rémi Denis-Courmont
fbb8255dcf Remove __LIBVLC__ test 2008-06-06 19:07:55 +03:00
Clément Stenac
fbf4c8060d A bit of vlc/libvlc cleanup:
* libvlc sources and plugins now define __LIBVLC__ and headers exported to
  plugins (ie, include/vlc_*.h) check for this
* libvlc sources use the value of the "libvlc" component in vlc-config instead
  of vlc
* Apply flags directly to "libvlc" in configure.ac - might temporarily break win32 :)
2006-12-03 13:48:21 +00:00
Antoine Cellerier
2cb472dba0 FSF address change. 2006-01-12 23:10:04 +00:00
Clément Stenac
dc09f863f9 Remove unused structures from vlc_common.h
Minor headers cleanup
2005-12-15 11:37:45 +00:00
Rémi Denis-Courmont
fe087a3828 Make Zorglub less unhappy 2005-07-09 06:17:09 +00:00
Rémi Denis-Courmont
85b29bdc28 Copyright fixes
(da big courmischage)
2005-07-08 18:12:44 +00:00
Steve Lhomme
3d831e04ec Avoid \r\n problems between platforms 2005-03-02 16:47:31 +00:00
Laurent Aimar
3557949236 * include/vlc_bits.h: bit stream reader/writer.
* mpeg4video.c: rework of the mpeg4 video packetizer.
 (not well tested)
2003-11-18 20:15:38 +00:00