Mercurial > libavformat.hg
comparison mpjpeg.c @ 241:3d92f793fd67 libavformat
64 bit pts for writing - more const usage
author | bellard |
---|---|
date | Wed, 10 Sep 2003 22:37:33 +0000 |
parents | a58a8a53eb46 |
children | a313e1080322 |
comparison
equal
deleted
inserted
replaced
240:e6f99d238179 | 241:3d92f793fd67 |
---|---|
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_t *buf, int size, int force_pts) | 36 const uint8_t *buf, int size, int64_t pts) |
37 { | 37 { |
38 uint8_t 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)); |
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_t *buf, int size, int force_pts) | 78 const uint8_t *buf, int size, int64_t 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 } |