search for: ogg_int64_t

Displaying 20 results from an estimated 80 matches for "ogg_int64_t".

2009 May 15
0
[PATCH] oggz: limit seeking to specified range
...\param offset_begin Start of offset range to seek inside, in bytes + * \param offset_end End of offset range to seek inside, in bytes, + pass -1 for end of media + * \returns The new position, in milliseconds or custom units + * \retval -1 on failure (unit_target is not within range) + */ +ogg_int64_t +oggz_bounded_seek_set (OGGZ * oggz, + ogg_int64_t unit_target, + ogg_int64_t offset_begin, + ogg_int64_t offset_end); + #endif /* __OGGZ_SEEK_H__ */ diff --git a/src/liboggz/oggz_seek.c b/src/liboggz/oggz_seek.c index a8c1476..faa...
2008 Dec 16
3
liboggz: use ogg_int64_t instead of C99 int64_t for the benefit of you-can-guess-who
...ision 3827) +++ src/tools/oggz_tools.c (working copy) @@ -450,7 +450,7 @@ dg->pt = (iframe + pframe) >> 9; dg->dist = ((iframe & 0xff) << 8) | (pframe & 0xff); dg->delay = pframe >> 9; - dg->dt = (int64_t)dg->pt - dg->delay; + dg->dt = (ogg_int64_t)dg->pt - dg->delay; } int Index: src/liboggz/metric_internal.c =================================================================== --- src/liboggz/metric_internal.c (revision 3827) +++ src/liboggz/metric_internal.c (working copy) @@ -53,7 +53,7 @@ pframe = granulepos - (ifra...
2007 Oct 09
1
VC6 Patch
...p # End Target # End Project Index: lib/enc/x86_32_vs/fdct_mmx.c =================================================================== --- lib/enc/x86_32_vs/fdct_mmx.c (revision 13942) +++ lib/enc/x86_32_vs/fdct_mmx.c (working copy) @@ -14,13 +14,13 @@ #include "dsp.h" -static const ogg_int64_t xC1S7 = 0x0fb15fb15fb15fb15LL; -static const ogg_int64_t xC2S6 = 0x0ec83ec83ec83ec83LL; -static const ogg_int64_t xC3S5 = 0x0d4dbd4dbd4dbd4dbLL; -static const ogg_int64_t xC4S4 = 0x0b505b505b505b505LL; -static const ogg_int64_t xC5S3 = 0x08e3a8e3a8e3a8e3aLL; -static const ogg_int64_t xC6S2 = 0...
2012 May 21
1
Problems seeking with liboggz
...= oggz_set_read_page (pOGGZ, -1, myReadPageCallback, (void*)0); ofs = oggz_seek(pOGGZ, 0, SEEK_END); printf("\n Audio file size in bytes = %8lld", ofs); ofs = oggz_seek(pOGGZ, 0, SEEK_SET); ret = oggz_read(pOGGZ, 28779); for(int i=0; i<3; i++) { ogg_int64_t seektime = (i==0 ? 5000 : i==1 ? 10000 : 13000); ogg_int64_t rseek = oggz_seek_units(pOGGZ, seektime, SEEK_SET); ogg_int64_t tellseek = oggz_tell_units(pOGGZ); printf("\n Requested seek time = %8lld, return of time seek function = %8lld, return of time tell function...
2009 May 04
1
[PATCH] oggz: inefficient seeking
...64 + PRI_OGGZ_OFF_T="ll" fi dnl The following configured variables are written into the public header diff --git a/src/liboggz/oggz_seek.c b/src/liboggz/oggz_seek.c index c46f0ab..a8c1476 100644 --- a/src/liboggz/oggz_seek.c +++ b/src/liboggz/oggz_seek.c @@ -506,9 +506,15 @@ guess (ogg_int64_t unit_at, ogg_int64_t unit_target, if (unit_at == unit_begin) return offset_begin; - guess_ratio = - GUESS_MULTIPLIER * (unit_target - unit_begin) / - (unit_at - unit_begin); + if (unit_end != -1) { + guess_ratio = + GUESS_MULTIPLIER * (unit_target - unit_begin) / + (unit...
2008 Dec 16
1
liboggz: use ogg_int64_t instead of C99 int64_t for the benefit of you-can-guess-who
> Since these are the only two uses of int64_t instead of ogg_int64_t in > liboggz, please commit. In svn. Didn't get the OK from Conrad from committing to his software, hope it's OK kfish ^_^
2004 Sep 06
1
Fixing libvorbisfile to handle largefiles
...ource updated the weekend of 22.Aug: --- include/vorbis/vorbisfile.h-ORIG Sun Aug 22 20:49:53 2004 +++ include/vorbis/vorbisfile.h Fri Aug 27 00:39:56 2004 @@ -40,7 +40,7 @@ size_t (*read_func) (void *ptr, size_t size, size_t nmemb, void *datasource); int (*seek_func) (void *datasource, ogg_int64_t offset, int whence); int (*close_func) (void *datasource); - long (*tell_func) (void *datasource); + ogg_int64_t (*tell_func) (void *datasource); } ov_callbacks; #define NOTOPEN 0 I suspect there are a number of other files elsewhere in the vorbis source that I haven't se...
2008 May 01
2
[PATCH] liboggplay - kate support, build fixes, and misc
> There seems to be some inconsistency in the changes to the type of > sample_in_record and its accessor: the field was changed from int to > ogg_int64_t in src/liboggplay/oggplay_callback_info.h, and the return > type of the accessor function was changed from int to long in the > corresponding .c file and public header. Having heard no more about this, I'll make a patch that returns ogg_int64_t, and hope Python likes it, is it OK ?
2009 Feb 08
1
[libvorbis] Bugfix: seek broken for large files and on pure 32 bit architectures
In file vorbisfile.c, function int ov_pcm_seek_page(OggVorbis_File *vf,ogg_int64_t pos) the calculation of the approximate seek point causes an overflow for very large files and on pure 32 bit architectures. /* take a (pretty decent) guess. */ bisect=begin + (target-begintime)*(end-begin)/(endtime-begintime) - CHUNKSIZE; The temporary expression (target-begintime)*(...
2017 Nov 20
7
[PATCH 0/2] libopusfile int64 overflows
Just an attempt to avoid overflows with an explicit check, I don't know if there's a better way to identify corrupt input here. James Zern (2): op_pcm_seek: fix int64 overflow op_fetch_and_process_page: fix int64 overflow src/opusfile.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) -- 2.15.0.448.gf294e3d99a-goog
2012 May 16
2
Problems seeking with liboggz
...at happens: - I open a Ogg Speex-encoded audio file with oggz_open("MyFile.spx", OGGZ_READ | OGGZ_AUTO); - I have a loop of invocations of oggz_read() that triggers in the due time the page and packet callbacks defined by me. - But when I randomly do seeking by means of ogg_int64_t rseek = oggz_seek_units(pOGGZ, posMsecs, SEEK_SET); I get erratic results: Many times rseek does not match posMsecs. The first page callback after the seek invocation refers to a page that is sometimes previous and sometimes after the page that contains posMsecs....
2012 May 21
0
Problems seeking with liboggz
...t; > > ofs = oggz_seek(pOGGZ, 0, SEEK_END); > > printf("\n Audio file size in bytes = %8lld", ofs); > > ofs = oggz_seek(pOGGZ, 0, SEEK_SET); > > ret = oggz_read(pOGGZ, 28779); > > > > for(int i=0; i<3; i++) > > { > > ogg_int64_t seektime = (i==0 ? 5000 : i==1 ? 10000 : 13000); > > ogg_int64_t rseek = oggz_seek_units(pOGGZ, seektime, > SEEK_SET); > > ogg_int64_t tellseek = oggz_tell_units(pOGGZ); > > printf("\n Requested seek time = %8lld, return of time seek > function...
2012 May 23
0
Problems seeking with liboggz
...t; > > ofs = oggz_seek(pOGGZ, 0, SEEK_END); > > printf("\n Audio file size in bytes = %8lld", ofs); > > ofs = oggz_seek(pOGGZ, 0, SEEK_SET); > > ret = oggz_read(pOGGZ, 28779); > > > > for(int i=0; i<3; i++) > > { > > ogg_int64_t seektime = (i==0 ? 5000 : i==1 ? 10000 : 13000); > > ogg_int64_t rseek = oggz_seek_units(pOGGZ, seektime, > SEEK_SET); > > ogg_int64_t tellseek = oggz_tell_units(pOGGZ); > > printf("\n Requested seek time = %8lld, return of time seek > function...
2002 Mar 27
0
CVS libvorbisfile
Hi, Today I tried to run my player code with the CVS libvorbis (instead of RC3 as usual) and I found the infinite loop here (lines prefixed with >> are in the loop): tatic ogg_int64_t _get_prev_page(OggVorbis_File *vf,ogg_page *og){ ogg_int64_t begin=vf->offset; ogg_int64_t end=begin; ogg_int64_t ret; ogg_int64_t offset=-1; >> while(offset==-1){ >> begin-=CHUNKSIZE; >> if(begin<0) >> begin=0; >> _seek_helper(vf,begin);...
2009 Aug 12
1
Oggz use
...-chop" command does it. - For the last task I'm trying to use the liboggz 0.9.9 Write API. Here is the code of my application to write silence in an ogg file : ------------------------------------------------------------------------------------------------ /static long serialno; static ogg_int64_t granulepos = 0; static ogg_int64_t packetno = 0;/ ------------------------------------------------------------------------------------------------ /static int oggzHungry(OGGZ * oggz, int empty, void * user_data) { ogg_packet op; //unsigned char buf[1]; //buf[0] = 'A' + (int)packetno;...
2002 Dec 10
2
mingw compiling problem for libogg
(i hope this is correct m.list) Hi, there is a small compiling problem for mingw when compiling on libogg.. in include/ogg/os_types.h : ogg_int64_t, ogg_int32_t, etc are defined correctly on cygwin and MSVC/Borland but not on mingw... i have attached a patch that will fix this problem (i hope it attaches correctly) thx, Nehal --- os_types.h.old Fri Jul 19 02:25:52 2002 +++ os_types.h Tue Dec 10 14:15:44 2002 @@ -32,6 +32,13 @@ typede...
2004 May 23
4
Various Ogg Vorbis largefile notes and/or patches
Greetings one and all; I'm not subscribed to this list so I'm first sending this message to verify that mails from me make it through, and then later I'll send the juicy messages with patches. Also, the address I'm using is IPv6-only and doesn't often work, so drop me from any replies and I'll catch the archives, or drop only the hostname part to get an IPv4 address that
2001 Aug 20
1
Still more // comments
...======================================================= RCS file: /usr/local/cvsroot/vorbis-tools/vcut/vcut.h,v retrieving revision 1.3 diff -c -r1.3 vcut.h *** vorbis-tools/vcut/vcut.h 2001/07/16 13:09:57 1.3 --- vorbis-tools/vcut/vcut.h 2001/08/20 10:53:35 *************** *** 20,27 **** ogg_int64_t initialgranpos; ogg_int64_t cutpoint; unsigned int serial; ! vcut_packet **headers; //3 ! vcut_packet **packets; //2 FILE *in,*out1,*out2; } vcut_state; --- 20,27 ---- ogg_int64_t initialgranpos; ogg_int64_t cutpoint; unsigned int ser...
2002 Sep 25
0
vorbisfile bug?
Good day. It seems vorbisfile has a bug. There is a such string in ov_time_seek: ogg_int64_t target=pcm_total+(seconds-time_total)*vf->vi[link].rate; It is not accounted type convertion between double and ogg_int64_t. E.g. if I convert 440267'th sample (44100Hz source) to time: double dSec = 440267 / (double) 44100; and then try to seek dSec: ov_time_seek(pOVFile, dSec); the result...
2008 Apr 21
4
[PATCH] liboggplay - kate support, build fixes, and misc
Hi, I've added kate support to liboggplay (a prerequisite to getting kate tracks to work with the mozilla plugin, which I've now got working on Linux). In addition to the Kate code: - a new oggplay-uninstalled.pc file - configure.ac checks for C++ compiler - no check for fishsound version - it wanted 0.8.0, but the svn itself was 0.7.1 !? - don't use imlib2 (nor dump-first-frame) if