Skip to content

Commit f8724db

Browse files
committedAug 26, 2024·
change to attr accessor
1 parent 8e2dcc1 commit f8724db

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎lib/ffmpeg/movie.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ class Movie
1010
attr_reader :color_primaries, :avframe_color_space, :color_transfer
1111
attr_reader :container
1212
attr_reader :error
13-
attr_reader :should_pre_encode
13+
14+
attr_accessor :should_pre_encode
1415

1516
UNSUPPORTED_CODEC_PATTERN = /^Unsupported codec with id (\d+) for input stream (\d+)$/
1617

@@ -266,6 +267,10 @@ def any_streams_contain_audio?
266267
@any_streams_contain_audio ||= calc_any_streams_contain_audio
267268
end
268269

270+
def did_pre_encode?
271+
@should_pre_encode ||= false
272+
end
273+
269274
protected
270275

271276
def calc_any_streams_contain_audio

0 commit comments

Comments
 (0)
Please sign in to comment.