comparison raw.c @ 3973:549a09cf23fe libavformat

Remove offset_t typedef and use int64_t directly instead. The name offset_t is easily confused with the standard off_t type and *_t is POSIX reserved namespace if any POSIX header is included.
author diego
date Fri, 03 Oct 2008 10:16:29 +0000
parents 14020f10caf7
children fcff303d5c8c
comparison
equal deleted inserted replaced
3972:c7a831579a13 3973:549a09cf23fe
46 static int flac_write_trailer(struct AVFormatContext *s) 46 static int flac_write_trailer(struct AVFormatContext *s)
47 { 47 {
48 ByteIOContext *pb = s->pb; 48 ByteIOContext *pb = s->pb;
49 uint8_t *streaminfo = s->streams[0]->codec->extradata; 49 uint8_t *streaminfo = s->streams[0]->codec->extradata;
50 int len = s->streams[0]->codec->extradata_size; 50 int len = s->streams[0]->codec->extradata_size;
51 offset_t file_size; 51 int64_t file_size;
52 52
53 if (streaminfo && len > 0 && !url_is_streamed(s->pb)) { 53 if (streaminfo && len > 0 && !url_is_streamed(s->pb)) {
54 file_size = url_ftell(pb); 54 file_size = url_ftell(pb);
55 url_fseek(pb, 8, SEEK_SET); 55 url_fseek(pb, 8, SEEK_SET);
56 put_buffer(pb, streaminfo, len); 56 put_buffer(pb, streaminfo, len);