aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorWilson E. Alvarez2018-04-02 16:47:06 -0400
committerHein-Pieter van Braam2018-04-29 14:56:52 +0200
commit7417b6adb459eaf896e392251eeeaf79d92ad9ff (patch)
treefffd809e60da8b9da846ee38493f0a90b498916a /modules
parent66b36235c9cf831cf370a9b70decf5d5e5cd7d39 (diff)
downloadgodot-7417b6adb459eaf896e392251eeeaf79d92ad9ff.tar.gz
godot-7417b6adb459eaf896e392251eeeaf79d92ad9ff.tar.zst
godot-7417b6adb459eaf896e392251eeeaf79d92ad9ff.zip
Diffstat (limited to 'modules')
-rw-r--r--modules/theora/video_stream_theora.cpp20
1 files changed, 12 insertions, 8 deletions
diff --git a/modules/theora/video_stream_theora.cpp b/modules/theora/video_stream_theora.cpp
index 58c6d73ab..9e6307c0b 100644
--- a/modules/theora/video_stream_theora.cpp
+++ b/modules/theora/video_stream_theora.cpp
@@ -261,14 +261,12 @@ void VideoStreamPlaybackTheora::set_file(const String &p_file) {
/* look for further theora headers */
while (theora_p && (theora_p < 3) && (ret = ogg_stream_packetout(&to, &op))) {
if (ret < 0) {
- fprintf(stderr, "Error parsing Theora stream headers; "
- "corrupt stream?\n");
+ fprintf(stderr, "Error parsing Theora stream headers; corrupt stream?\n");
clear();
return;
}
if (!th_decode_headerin(&ti, &tc, &ts, &op)) {
- fprintf(stderr, "Error parsing Theora stream headers; "
- "corrupt stream?\n");
+ fprintf(stderr, "Error parsing Theora stream headers; corrupt stream?\n");
clear();
return;
}
@@ -312,9 +310,15 @@ void VideoStreamPlaybackTheora::set_file(const String &p_file) {
td = th_decode_alloc(&ti, ts);
px_fmt = ti.pixel_fmt;
switch (ti.pixel_fmt) {
- case TH_PF_420: printf(" 4:2:0 video\n"); break;
- case TH_PF_422: printf(" 4:2:2 video\n"); break;
- case TH_PF_444: printf(" 4:4:4 video\n"); break;
+ case TH_PF_420:
+ //printf(" 4:2:0 video\n");
+ break;
+ case TH_PF_422:
+ //printf(" 4:2:2 video\n");
+ break;
+ case TH_PF_444:
+ //printf(" 4:4:4 video\n");
+ break;
case TH_PF_RSVD:
default:
printf(" video\n (UNKNOWN Chroma sampling!)\n");
@@ -519,7 +523,7 @@ void VideoStreamPlaybackTheora::update(float p_delta) {
#else
if (file && /*!videobuf_ready && */ no_theora && theora_eos) {
#endif
- printf("video done, stopping\n");
+ //printf("video done, stopping\n");
stop();
return;
};