[theora] ignoring audio in player_example

Mayer, Jim Jim.Mayer at xerox.com
Tue Sep 25 15:13:40 PDT 2007


I'm interested in ignoring the audio stream in a theora encoded file.
My first attempt was to remove the test for vorbis:
 
 /* identify the codec: try theora */
 if(!theora_p && theora_decode_header(&ti,&tc,&op)>=0){
 /* it is theora */
 memcpy(&to,&test,sizeof(test));
 theora_p=1;
 }else if(!vorbis_p && vorbis_synthesis_headerin(&vi,&vc,&op)>=0){
 /* it is vorbis */
 memcpy(&vo,&test,sizeof(test));
 vorbis_p=1;
 }else{
 /* whatever it is, we don't care about it */
 ogg_stream_clear(&test);
 }
 
I simply commented out the "else if (! vorbis_p &&" line.
 
Unfortunately, the resulting executable displayed a green rectangle and,
when interrupted, crashes. Clearly I am doing something very wrong!
 
Any thoughts? I'm quite new to Theora.
 
Thanks.
 
-- Jim
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/theora/attachments/20070925/ea733f61/attachment.html


More information about the theora mailing list

AltStyle によって変換されたページ (->オリジナル) /