Skip to content

Commit

Permalink
Fix FLAG2 constants
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed Sep 3, 2009
1 parent acf63a1 commit abdd870
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/ffmpeg/codec/flag.rb
Expand Up @@ -42,3 +42,4 @@ class FFMPEG::Codec::Flag
builder.map_c_const 'CODEC_FLAG_4MV' => ['int', 'FOURMV']
end
end

2 changes: 1 addition & 1 deletion lib/ffmpeg/codec/flag2.rb
Expand Up @@ -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']
Expand Down
2 changes: 1 addition & 1 deletion lib/ffmpeg/output_format.rb
Expand Up @@ -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)
Expand Down

0 comments on commit abdd870

Please sign in to comment.