Displaying 11 results from an estimated 11 matches for "vorbis_block_clear".
2001 Jan 09
1
Question re: vorbis_block_clear()
I'm running into memory leak and read-from/write-to unallocated errors in
the cleanup phase of parallel oggenc.
I see in vorbis_block_clear() that it references some fields on the
vorbis_dsp_state that it cached during vorbis_block_init(), and
conditionally does some cleanup based on the values of those fields.
Does this fact effectively mean that you can't have multiple vorbis_block
instances outstanding? i.e., can you only reli...
2001 Sep 11
2
Another backtrace
I got this one this morning, but didn't notice it til now:
---
(gdb) bt
#0 0x4003be91 in vorbis_block_clear (vb=0xbffff71c) at block.c:156
#1 0x4003ce36 in vorbis_analysis_blockout (v=0xbffff71c, vb=0x8050b80)
at block.c:591
#2 0x4002ff23 in _prefetch_all_headers (vf=0xbffff540,
dataoffset=-1073749296)
at vorbisfile.c:324
#3 0x4003039c in _process_packet (vf=0xbffff540, readp=1) at vorbisfile....
2009 May 12
2
compile error of libtheora example
...ule_time'
player_example.c:(.text+0x1930): undefined reference to `ogg_sync_pageout'
player_example.c:(.text+0x1d30): undefined reference to `SDL_Quit'
player_example.c:(.text+0x1d45): undefined reference to `ogg_stream_clear'
player_example.c:(.text+0x1d51): undefined reference to `vorbis_block_clear'
player_example.c:(.text+0x1d5d): undefined reference to `vorbis_dsp_clear'
player_example.c:(.text+0x1d69): undefined reference to
`vorbis_comment_clear'
player_example.c:(.text+0x1d75): undefined reference to `vorbis_info_clear'
player_example.c:(.text+0x1d8a): undefined reference...
2012 May 14
0
Memory Leak in vorbis_info_clear()
...r(&info, 2, 44100, 1.0);
vorbis_analysis_init(&dsp, &info);
vorbis_comment_init(&comment);
vorbis_analysis_headerout(&dsp, &comment,
&pkt.ident, &pkt.comment, &pkt.setup);
vorbis_block_init(&dsp, &block);
} /* init() */
void destroy(_Bool leak) {
vorbis_block_clear(&block);
if (leak)
vorbis_info_clear(&info);
vorbis_dsp_clear(&dsp);
if (!leak)
vorbis_info_clear(&info);
vorbis_comment_clear(&comment);
} /* destroy() */
int main(int argc, char *argv[]) {
_Bool leak = 0;
int opt;
while (-1 != (opt = getopt(argc, argv, "l&qu...
2013 Aug 18
1
vorbis_info_clear important?
Hi,
I'm using a Windows development component which uses vorbis.dll, ogg.dll,
vorbisenc.dll for encoding a file. When finishing a recording, the
component runs these functions...
ogg_stream_clear(OggSS);
vorbis_block_clear(VBlock);
vorbis_dsp_clear(Vdsp);
vorbis_comment_clear(VComm);
vorbis_info_clear(VInfo);
I'm occasionally receiving a hang in the function vorbis_info_clear(vinfo)
which goes to 100% CPU indefinitely. I've tried different compiles of
vorbis.dll without success. I've checke...
2001 Sep 02
0
Encoding process
...of stream:
27 get page from stream: -- ogg_stream_pageout()
28 if no page available:
29 break
30 write page to file
31 if nothing written:
32 fatal error
33 check if end of stream -- ogg_page_eos()
34 clear stream -- ogg_stream_clear()
35 clear block -- vorbis_block_clear()
36 clear dsp -- vorbis_dsp_clear
37 clear info -- vorbis_info_clear()
---
First of all, is the above correct? If not please let me know.
Second, I want to partition the above process into multiple functions i.e., so
that the "forever:" part on line 16 is handled outside. I just want t...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...gt;audio_bytesout * 8. / info->audiotime * .001);
+ print_stats(info, info->audiotime);
video=0;
- info.audioflag = 1;
+ info->audioflag = 1;
flushloop=1;
}
if(e_o_s)
@@ -322,16 +320,16 @@
}
}
-void theoraframes_close (){
- ogg_stream_clear (&info.vo);
- vorbis_block_clear (&info.vb);
- vorbis_dsp_clear (&info.vd);
- vorbis_comment_clear (&info.vc);
- vorbis_info_clear (&info.vi);
+void theoraframes_close (theoraframes_info *info){
+ ogg_stream_clear (&info->vo);
+ vorbis_block_clear (&info->vb);
+ vorbis_dsp_clear (&info->vd);
+...
1999 Oct 04
3
Detailed decoder pseudocode (was: Re: ETA?)
...th the possibility
of chaining logical streams) */
ogg_sync_clear(&oy);
ogg_stream_clear(&os);
/* ogg_page and ogg_packet structs always point to storage in
libvorbis. They're never freed or manipulated directly */
vorbis_info_clear(&vi);
vorbis_synthesis_clear(&vd);
vorbis_block_clear(&vb);
exit(0);
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
2015 May 18
5
Writting 16-bit PCM data to Ogg.
Hi Developers,
I have a 16-bit PCM data buffer, I want to write that to ogg file. Could
you help me to understand how to write pcm data to the ogg?
Thanks in advance.
Arun balaji
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20150518/6c8c9a63/attachment.htm
2002 Aug 06
0
Getting a GUI to work with Vorbis code
...}
/* clean up this logical bitstream; before exit we see if we're
followed by another [chained] */
ogg_stream_clear(&os);
/* ogg_page and ogg_packet structs always point to storage in
libvorbis. They're never freed or manipulated directly */
vorbis_block_clear(&vb);
vorbis_dsp_clear(&vd);
vorbis_comment_clear(&vc);
vorbis_info_clear(&vi); /* must be called last */
}
/* OK, clean up the framer */
ogg_sync_clear(&oy);
fprintf(outputFile,"Done.\n");
// TODO: Add your control notification han...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...n vorbis_synthesis_init
// these functions will have nasty malloc/free problems. You may *NOT*
// just clear these and hope for the best. It doesn't work.
//
// Originally, I was calling vorbis_synthesis_init too early and then
// vorbis_info_clear was throwing malloc/free failures.
*/
vorbis_block_clear(vb);
vorbis_dsp_clear(vd); // Inverse of vorbis_synthesis_init() ???
vorbis_comment_clear(vc);
vorbis_info_clear(vi);
}
} /* This while loop iterates over ogg pages */
} /* This while loop iterates over ogg logical streams */
dprintf("Destroying stream state\n");...