Skip to content

Commit 178c8e2

Browse files
authored
Merge pull request #346 from jeffski/fix-text-24hr-memory-issue
Reduce duration of Image/Text Readers to 1 hour (#327)
2 parents 3f5370a + e15c0c1 commit 178c8e2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ImageReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void ImageReader::Open()
8282
info.height = image->size().height();
8383
info.pixel_ratio.num = 1;
8484
info.pixel_ratio.den = 1;
85-
info.duration = 60 * 60 * 24; // 24 hour duration
85+
info.duration = 60 * 60 * 1; // 1 hour duration
8686
info.fps.num = 30;
8787
info.fps.den = 1;
8888
info.video_timebase.num = 1;

src/QtImageReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void QtImageReader::Open()
123123
info.height = image->height();
124124
info.pixel_ratio.num = 1;
125125
info.pixel_ratio.den = 1;
126-
info.duration = 60 * 60 * 24; // 24 hour duration
126+
info.duration = 60 * 60 * 1; // 1 hour duration
127127
info.fps.num = 30;
128128
info.fps.den = 1;
129129
info.video_timebase.num = 1;

src/TextReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void TextReader::Open()
127127
info.height = image->size().height();
128128
info.pixel_ratio.num = 1;
129129
info.pixel_ratio.den = 1;
130-
info.duration = 60 * 60 * 24; // 24 hour duration
130+
info.duration = 60 * 60 * 1; // 1 hour duration
131131
info.fps.num = 30;
132132
info.fps.den = 1;
133133
info.video_timebase.num = 1;

0 commit comments

Comments
 (0)