Changed file I/O markers to be 64 bit for Qt AVI.
This commit is contained in:
parent
51ef32413b
commit
4e1a335f81
|
@ -43,7 +43,7 @@
|
||||||
int
|
int
|
||||||
gwavi_t::write_avi_header(FILE *fp, struct gwavi_header_t *avi_header)
|
gwavi_t::write_avi_header(FILE *fp, struct gwavi_header_t *avi_header)
|
||||||
{
|
{
|
||||||
long marker, t;
|
long long marker, t;
|
||||||
|
|
||||||
if (write_chars_bin(fp, "avih", 4) == -1) {
|
if (write_chars_bin(fp, "avih", 4) == -1) {
|
||||||
(void)fprintf(stderr, "write_avi_header: write_chars_bin() "
|
(void)fprintf(stderr, "write_avi_header: write_chars_bin() "
|
||||||
|
@ -117,7 +117,7 @@ write_int_failed:
|
||||||
int
|
int
|
||||||
gwavi_t::write_stream_header(FILE *fp, struct gwavi_stream_header_t *stream_header)
|
gwavi_t::write_stream_header(FILE *fp, struct gwavi_stream_header_t *stream_header)
|
||||||
{
|
{
|
||||||
long marker, t;
|
long long marker, t;
|
||||||
|
|
||||||
if (write_chars_bin(fp, "strh", 4) == -1)
|
if (write_chars_bin(fp, "strh", 4) == -1)
|
||||||
goto write_chars_bin_failed;
|
goto write_chars_bin_failed;
|
||||||
|
@ -191,7 +191,7 @@ write_chars_bin_failed:
|
||||||
int
|
int
|
||||||
gwavi_t::write_stream_format_v(FILE *fp, struct gwavi_stream_format_v_t *stream_format_v)
|
gwavi_t::write_stream_format_v(FILE *fp, struct gwavi_stream_format_v_t *stream_format_v)
|
||||||
{
|
{
|
||||||
long marker,t;
|
long long marker,t;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
if (write_chars_bin(fp, "strf", 4) == -1) {
|
if (write_chars_bin(fp, "strf", 4) == -1) {
|
||||||
|
@ -279,7 +279,7 @@ fputc_failed:
|
||||||
int
|
int
|
||||||
gwavi_t::write_stream_format_a(FILE *fp, struct gwavi_stream_format_a_t *stream_format_a)
|
gwavi_t::write_stream_format_a(FILE *fp, struct gwavi_stream_format_a_t *stream_format_a)
|
||||||
{
|
{
|
||||||
long marker, t;
|
long long marker, t;
|
||||||
|
|
||||||
if (write_chars_bin(fp, "strf", 4) == -1) {
|
if (write_chars_bin(fp, "strf", 4) == -1) {
|
||||||
(void)fprintf(stderr, "write_stream_format_a: write_chars_bin()"
|
(void)fprintf(stderr, "write_stream_format_a: write_chars_bin()"
|
||||||
|
@ -337,8 +337,8 @@ write_short_failed:
|
||||||
int
|
int
|
||||||
gwavi_t::write_avi_header_chunk(FILE *fp)
|
gwavi_t::write_avi_header_chunk(FILE *fp)
|
||||||
{
|
{
|
||||||
long marker, t;
|
long long marker, t;
|
||||||
long sub_marker;
|
long long sub_marker;
|
||||||
|
|
||||||
if (write_chars_bin(fp, "LIST", 4) == -1)
|
if (write_chars_bin(fp, "LIST", 4) == -1)
|
||||||
goto write_chars_bin_failed;
|
goto write_chars_bin_failed;
|
||||||
|
@ -466,7 +466,7 @@ int gwavi_t::peak_chunk( FILE *fp, long int idx, char *fourcc, unsigned int *siz
|
||||||
int
|
int
|
||||||
gwavi_t::write_index(FILE *fp)
|
gwavi_t::write_index(FILE *fp)
|
||||||
{
|
{
|
||||||
long marker, t;
|
long long marker, t;
|
||||||
unsigned int offset = 4;
|
unsigned int offset = 4;
|
||||||
unsigned int r, flags;
|
unsigned int r, flags;
|
||||||
//char fourcc[8];
|
//char fourcc[8];
|
||||||
|
|
Loading…
Reference in New Issue