simple_decoder.c | simple_decoder.c | |||
---|---|---|---|---|
skipping to change at line 16 | skipping to change at line 16 | |||
// Author: Lasse Collin | // Author: Lasse Collin | |||
// | // | |||
// This file has been put into the public domain. | // This file has been put into the public domain. | |||
// You can do whatever you want with this file. | // You can do whatever you want with this file. | |||
// | // | |||
/////////////////////////////////////////////////////////////////////////// //// | /////////////////////////////////////////////////////////////////////////// //// | |||
#include "simple_decoder.h" | #include "simple_decoder.h" | |||
extern lzma_ret | extern lzma_ret | |||
lzma_simple_props_decode(void **options, lzma_allocator *allocator, | lzma_simple_props_decode(void **options, const lzma_allocator *allocator, | |||
const uint8_t *props, size_t props_size) | const uint8_t *props, size_t props_size) | |||
{ | { | |||
if (props_size == 0) | if (props_size == 0) | |||
return LZMA_OK; | return LZMA_OK; | |||
if (props_size != 4) | if (props_size != 4) | |||
return LZMA_OPTIONS_ERROR; | return LZMA_OPTIONS_ERROR; | |||
lzma_options_bcj *opt = lzma_alloc( | lzma_options_bcj *opt = lzma_alloc( | |||
sizeof(lzma_options_bcj), allocator); | sizeof(lzma_options_bcj), allocator); | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |