"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "image_utils.c" between
minidlna-1.2.1.tar.gz and minidlna-1.3.0.tar.gz

About: ReadyMedia (formerly known as MiniDLNA) is a simple media server software, with the aim of being fully compliant with DLNA/UPnP-AV clients.

image_utils.c  (minidlna-1.2.1):image_utils.c  (minidlna-1.3.0)
skipping to change at line 139 skipping to change at line 139
struct jpeg_source_mgr pub; struct jpeg_source_mgr pub;
JOCTET eoi_buffer[2]; JOCTET eoi_buffer[2];
}; };
static void static void
init_source(j_decompress_ptr cinfo) init_source(j_decompress_ptr cinfo)
{ {
return; return;
} }
static int static boolean
fill_input_buffer(j_decompress_ptr cinfo) fill_input_buffer(j_decompress_ptr cinfo)
{ {
struct my_src_mgr *src = (void *)cinfo->src; struct my_src_mgr *src = (void *)cinfo->src;
/* Create a fake EOI marker */ /* Create a fake EOI marker */
src->eoi_buffer[0] = (JOCTET) 0xFF; src->eoi_buffer[0] = (JOCTET) 0xFF;
src->eoi_buffer[1] = (JOCTET) JPEG_EOI; src->eoi_buffer[1] = (JOCTET) JPEG_EOI;
src->pub.next_input_byte = src->eoi_buffer; src->pub.next_input_byte = src->eoi_buffer;
src->pub.bytes_in_buffer = 2; src->pub.bytes_in_buffer = 2;
skipping to change at line 192 skipping to change at line 192
src = (void *)cinfo->src; src = (void *)cinfo->src;
src->pub.init_source = init_source; src->pub.init_source = init_source;
src->pub.fill_input_buffer = fill_input_buffer; src->pub.fill_input_buffer = fill_input_buffer;
src->pub.skip_input_data = skip_input_data; src->pub.skip_input_data = skip_input_data;
src->pub.resync_to_restart = jpeg_resync_to_restart; src->pub.resync_to_restart = jpeg_resync_to_restart;
src->pub.term_source = term_source; src->pub.term_source = term_source;
src->pub.next_input_byte = buffer; src->pub.next_input_byte = buffer;
src->pub.bytes_in_buffer = bufsize; src->pub.bytes_in_buffer = bufsize;
} }
jmp_buf setjmp_buffer; static jmp_buf setjmp_buffer;
/* Don't exit on error like libjpeg likes to do */ /* Don't exit on error like libjpeg likes to do */
static void static void
libjpeg_error_handler(j_common_ptr cinfo) libjpeg_error_handler(j_common_ptr cinfo)
{ {
cinfo->err->output_message(cinfo); cinfo->err->output_message(cinfo);
longjmp(setjmp_buffer, 1); longjmp(setjmp_buffer, 1);
return; return;
} }
void void
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)