comparison mpjpeg.c @ 65:a58a8a53eb46 libavformat

* UINTX -> uintx_t INTX -> intx_t
author kabi
date Tue, 11 Feb 2003 16:35:48 +0000
parents 45308962220f
children 3d92f793fd67
comparison
equal deleted inserted replaced
64:b0e0eb595e29 65:a58a8a53eb46
22 22
23 #define BOUNDARY_TAG "ffserver" 23 #define BOUNDARY_TAG "ffserver"
24 24
25 static int mpjpeg_write_header(AVFormatContext *s) 25 static int mpjpeg_write_header(AVFormatContext *s)
26 { 26 {
27 UINT8 buf1[256]; 27 uint8_t buf1[256];
28 28
29 snprintf(buf1, sizeof(buf1), "--%s\n", BOUNDARY_TAG); 29 snprintf(buf1, sizeof(buf1), "--%s\n", BOUNDARY_TAG);
30 put_buffer(&s->pb, buf1, strlen(buf1)); 30 put_buffer(&s->pb, buf1, strlen(buf1));
31 put_flush_packet(&s->pb); 31 put_flush_packet(&s->pb);
32 return 0; 32 return 0;
33 } 33 }
34 34
35 static int mpjpeg_write_packet(AVFormatContext *s, int stream_index, 35 static int mpjpeg_write_packet(AVFormatContext *s, int stream_index,
36 UINT8 *buf, int size, int force_pts) 36 uint8_t *buf, int size, int force_pts)
37 { 37 {
38 UINT8 buf1[256]; 38 uint8_t buf1[256];
39 39
40 snprintf(buf1, sizeof(buf1), "Content-type: image/jpeg\n\n"); 40 snprintf(buf1, sizeof(buf1), "Content-type: image/jpeg\n\n");
41 put_buffer(&s->pb, buf1, strlen(buf1)); 41 put_buffer(&s->pb, buf1, strlen(buf1));
42 put_buffer(&s->pb, buf, size); 42 put_buffer(&s->pb, buf, size);
43 43
73 { 73 {
74 return 0; 74 return 0;
75 } 75 }
76 76
77 static int single_jpeg_write_packet(AVFormatContext *s, int stream_index, 77 static int single_jpeg_write_packet(AVFormatContext *s, int stream_index,
78 UINT8 *buf, int size, int force_pts) 78 uint8_t *buf, int size, int force_pts)
79 { 79 {
80 put_buffer(&s->pb, buf, size); 80 put_buffer(&s->pb, buf, size);
81 put_flush_packet(&s->pb); 81 put_flush_packet(&s->pb);
82 return 1; /* no more data can be sent */ 82 return 1; /* no more data can be sent */
83 } 83 }