Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add AVFMT constants

  • Loading branch information...
commit f8650f8aebda87419719a6f5fdb5a2cca5a8aa48 1 parent bc6b0a6
@drbrain authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 lib/ffmpeg/format_parameters.rb
View
16 lib/ffmpeg/format_parameters.rb
@@ -1,6 +1,7 @@
class FFMPEG::FormatParameters
inline :C do |builder|
FFMPEG.builder_defaults builder
+
builder.prefix <<-C
void free_format_parameters(AVFormatParameters* format_parameters)
{
@@ -28,6 +29,21 @@ class FFMPEG::FormatParameters
}
C
+ FORMAT_PARAMETER_CONSTANTS = [
+ 'AVFMT_GENERIC_INDEX',
+ 'AVFMT_GLOBALHEADER',
+ 'AVFMT_NEEDNUMBER',
+ 'AVFMT_NOFILE',
+ 'AVFMT_NOTIMESTAMPS',
+ 'AVFMT_RAWPICTURE',
+ 'AVFMT_SHOW_IDS',
+ 'AVFMT_TS_DISCONT',
+ 'AVFMT_VARIABLE_FPS',
+ ]
+
+ FORMAT_PARAMETER_CONSTANTS.each do |const|
+ builder.map_c_const const => ['int', conts.sub('AVFMT_', '')]
+ end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.