Permalink
Browse files

Fix FLAG2 constants

  • Loading branch information...
1 parent acf63a1 commit abdd870103be6bd7eab9e681bb428f25202af0d7 @drbrain committed Sep 3, 2009
Showing with 3 additions and 2 deletions.
  1. +1 −0 lib/ffmpeg/codec/flag.rb
  2. +1 −1 lib/ffmpeg/codec/flag2.rb
  3. +1 −1 lib/ffmpeg/output_format.rb
View
@@ -42,3 +42,4 @@ class FFMPEG::Codec::Flag
builder.map_c_const 'CODEC_FLAG_4MV' => ['int', 'FOURMV']
end
end
+
@@ -23,7 +23,7 @@ class FFMPEG::Codec::Flag
]
FLAG2_CONSTANTS.each do |const|
- builder.map_c_const const => ['int', const.sub('CODEC_FLAG_', '')]
+ builder.map_c_const const => ['int', const.sub('CODEC_FLAG2_', '')]
end
builder.map_c_const 'CODEC_FLAG2_8X8DCT' => ['int', 'EIGHTXEIGHTDCT']
@@ -96,7 +96,7 @@ class FFMPEG::OutputFormat
builder.reader :mime_type, 'char *'
builder.reader :extensions, 'char *'
- builder.reader :flags, 'int' # TODO flag constants
+ builder.reader :flags, 'int'
end
def initialize(format_context)

0 comments on commit abdd870

Please sign in to comment.