| OLD | NEW |
| 1 /* | 1 /* |
| 2 * VP5/6/8 decoder | 2 * VP5/6/8 decoder |
| 3 * Copyright (c) 2010 Jason Garrett-Glaser <darkshikari@gmail.com> | 3 * Copyright (c) 2010 Jason Garrett-Glaser <darkshikari@gmail.com> |
| 4 * | 4 * |
| 5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
| 6 * | 6 * |
| 7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Lesser General Public | 8 * modify it under the terms of the GNU Lesser General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2.1 of the License, or (at your option) any later version. | 10 * version 2.1 of the License, or (at your option) any later version. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, | 33 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, |
| 34 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | 34 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
| 35 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | 35 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
| 36 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | 36 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
| 37 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, | 37 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 void ff_vp56_init_range_decoder(VP56RangeCoder *c, const uint8_t *buf, int buf_s
ize) | 40 void ff_vp56_init_range_decoder(VP56RangeCoder *c, const uint8_t *buf, int buf_s
ize) |
| 41 { | 41 { |
| 42 c->high = 255; | 42 c->high = 255; |
| 43 c->bits = -8; | 43 c->bits = -16; |
| 44 c->buffer = buf; | 44 c->buffer = buf; |
| 45 c->end = buf + buf_size; | 45 c->end = buf + buf_size; |
| 46 c->code_word = bytestream_get_be16(&c->buffer); | 46 c->code_word = bytestream_get_be24(&c->buffer); |
| 47 } | 47 } |
| OLD | NEW |