Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Nov 4, 2023
1 parent d95613e commit 4fe5627
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions highgui/src/jpeg_encoder_rk_mpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ int jpeg_encoder_rk_mpp_impl::encode(const unsigned char* bgrdata, const char* o
{
fprintf(stderr, "fopen %s failed\n", outfilepath);
ret_val = -1;
return OUT;
goto OUT;
}
}

Expand Down Expand Up @@ -781,7 +781,7 @@ int jpeg_encoder_rk_mpp_impl::encode(const unsigned char* bgrdata, const char* o
munmap(src_ptr, enc_packet.buf_size);
close(mb.dma_buf_fd);
ret_val = -1;
return OUT;
goto OUT;
}

munmap(src_ptr, enc_packet.buf_size);
Expand Down

0 comments on commit 4fe5627

Please sign in to comment.