Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix constants, add accessors

  • Loading branch information...
commit b4ab736e4b4d1128fdb6c88caec1b8014214422c 1 parent f8650f8
@drbrain authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 lib/ffmpeg/format_parameters.rb
View
12 lib/ffmpeg/format_parameters.rb
@@ -42,8 +42,18 @@ class FFMPEG::FormatParameters
]
FORMAT_PARAMETER_CONSTANTS.each do |const|
- builder.map_c_const const => ['int', conts.sub('AVFMT_', '')]
+ builder.map_c_const const => ['int', const.sub('AVFMT_', '')]
end
+
+ builder.struct_name = 'AVFormatParameters'
+ builder.accessor :channel, 'int'
+ builder.accessor :channels, 'int'
+ builder.accessor :height, 'int'
+ builder.accessor :pix_fmt, 'int'
+ builder.accessor :sample_rate, 'int'
+ builder.accessor :width, 'int'
+
+ builder.accessor :standard, 'char *'
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.