diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2016-07-06 19:04:21 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2016-07-07 23:15:59 +0200 |
commit | 3fcb9b1ec179b99d979d4cfea9b5e3c80e4a3e33 (patch) | |
tree | a9ab363b5d34a3e314883618c6f34d5368ca79a8 /drivers/theora | |
parent | b6ac91c0e6416eda0dec226c5dbe5716f293e4f6 (diff) |
Removed unused variables (second pass) + dead code
Fixes various gcc 5.4.0 warnings for -Wunused-variable and -Wunused-but-set-variable
Diffstat (limited to 'drivers/theora')
-rw-r--r-- | drivers/theora/video_stream_theora.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/theora/video_stream_theora.cpp b/drivers/theora/video_stream_theora.cpp index fa2a79dc7b..1f3832ec16 100644 --- a/drivers/theora/video_stream_theora.cpp +++ b/drivers/theora/video_stream_theora.cpp @@ -81,12 +81,12 @@ int VideoStreamPlaybackTheora::queue_page(ogg_page *page){ void VideoStreamPlaybackTheora::video_write(void){ th_ycbcr_buffer yuv; - int y_offset, uv_offset; th_decode_ycbcr_out(td,yuv); + /* + int y_offset, uv_offset; y_offset=(ti.pic_x&~1)+yuv[0].stride*(ti.pic_y&~1); - /* { int pixels = size.x * size.y; frame_data.resize(pixels * 4); @@ -117,7 +117,7 @@ void VideoStreamPlaybackTheora::video_write(void){ DVector<uint8_t>::Write w = frame_data.write(); char* dst = (char*)w.ptr(); - uv_offset=(ti.pic_x/2)+(yuv[1].stride)*(ti.pic_y/2); + //uv_offset=(ti.pic_x/2)+(yuv[1].stride)*(ti.pic_y/2); if (px_fmt == TH_PF_444) { @@ -543,16 +543,10 @@ void VideoStreamPlaybackTheora::update(float p_delta) { bool frame_done=false; bool audio_done=!vorbis_p; - bool theora_done=false; - while (!frame_done || (!audio_done && !vorbis_eos)) { //a frame needs to be produced ogg_packet op; - bool audio_pending = false; - - - bool no_vorbis=false; bool no_theora=false; @@ -604,8 +598,6 @@ void VideoStreamPlaybackTheora::update(float p_delta) { int tr = vorbis_synthesis_read(&vd, ret-to_read); - audio_pending=true; - if (vd.granulepos>=0) { // print_line("wrote: "+itos(audio_frames_wrote)+" gpos: "+itos(vd.granulepos)); @@ -627,7 +619,6 @@ void VideoStreamPlaybackTheora::update(float p_delta) { } } else { /* we need more data; break out to suck in another page */ //printf("need moar data\n"); - no_vorbis=true; break; }; } |