2
* Copyright (C) 2000, 2001, 2002, 2003 H�kan Hjort <d95hjort@dtek.chalmers.se>
4
* This program is free software; you can redistribute it and/or modify
2
* Copyright (C) 2000, 2001, 2002, 2003 Håkan Hjort <d95hjort@dtek.chalmers.se>
4
* This file is part of libdvdread.
6
* libdvdread is free software; you can redistribute it and/or modify
5
7
* it under the terms of the GNU General Public License as published by
6
8
* the Free Software Foundation; either version 2 of the License, or
7
9
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
11
* libdvdread is distributed in the hope that it will be useful,
10
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
14
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
* You should have received a copy of the GNU General Public License along
17
* with libdvdread; if not, write to the Free Software Foundation, Inc.,
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22
22
#include <stdlib.h>
23
23
#include <string.h>
24
24
#include <inttypes.h>
26
#include "bitreader.h"
26
#include "dvdread/bitreader.h"
28
28
int dvdread_getbits_init(getbits_state_t *state, uint8_t *start) {
29
29
if ((state == NULL) || (start == NULL)) return 0;