@@ -59,7 +59,6 @@ bool bsv_movie_read_deduped_state(bsv_movie_t *movie,
5959
6060bool bsv_movie_reset_recording (bsv_movie_t * handle )
6161{
62- retro_ctx_serialize_info_t serial_info ;
6362 size_t state_size , state_size_ ;
6463 uint8_t compression = handle -> checkpoint_compression ;
6564#if HAVE_STATESTREAM
@@ -253,11 +252,9 @@ bool bsv_movie_load_checkpoint(bsv_movie_t *handle, uint8_t compression, uint8_t
253252{
254253 input_driver_state_t * input_st = input_state_get_ptr ();
255254 uint32_t compressed_encoded_size , encoded_size , size ;
256- uint8_t * compressed_data = NULL , * encoded_data = NULL , * state = NULL ;
255+ uint8_t * compressed_data = NULL , * encoded_data = NULL ;
257256 retro_ctx_serialize_info_t serial_info ;
258257 bool ret = true;
259- uint8_t * swap ;
260- size_t size_swap ;
261258
262259 if (intfstream_read (handle -> file , & (size ),
263260 sizeof (uint32_t )) != sizeof (uint32_t ))
@@ -636,7 +633,6 @@ bool bsv_movie_read_next_events(bsv_movie_t *handle, bool skip_checkpoints)
636633 }
637634 else if (next_frame_type == REPLAY_TOKEN_CHECKPOINT2_FRAME )
638635 {
639- retro_ctx_serialize_info_t serial_info ;
640636 uint8_t compression , encoding ;
641637 if (intfstream_read (handle -> file , & (compression ), sizeof (uint8_t )) != sizeof (uint8_t ) ||
642638 intfstream_read (handle -> file , & (encoding ), sizeof (uint8_t )) != sizeof (uint8_t ))
@@ -721,7 +717,6 @@ void bsv_movie_next_frame(input_driver_state_t *input_st)
721717 && (handle -> frame_counter % (checkpoint_interval * 60 ) == 0 ))
722718 {
723719 uint8_t frame_tok = REPLAY_TOKEN_CHECKPOINT2_FRAME ;
724- retro_ctx_serialize_info_t serial_info ;
725720 uint8_t compression = handle -> checkpoint_compression ;
726721#if HAVE_STATESTREAM
727722 uint8_t encoding = REPLAY_CHECKPOINT2_ENCODING_STATESTREAM ;
@@ -1135,7 +1130,6 @@ int64_t bsv_movie_write_deduped_state(bsv_movie_t *movie, uint8_t *state, size_t
11351130 static uint64_t total_bytes_written = 0 ;
11361131 static retro_perf_tick_t total_encode_micros = 0 ;
11371132 retro_perf_tick_t start = cpu_features_get_time_usec ();
1138- size_t block_size = movie -> blocks -> object_size ;
11391133 size_t block_byte_size = movie -> blocks -> object_size * 4 ;
11401134 size_t superblock_size = movie -> superblocks -> object_size ;
11411135 size_t superblock_byte_size = superblock_size * block_byte_size ;
0 commit comments