Permalink
Browse files

Fix constants, add accessors

  • Loading branch information...
1 parent f8650f8 commit b4ab736e4b4d1128fdb6c88caec1b8014214422c @drbrain committed Sep 3, 2009
Showing with 11 additions and 1 deletion.
  1. +11 −1 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

0 comments on commit b4ab736

Please sign in to comment.