$plugin_purpose{'convert-oggdec'} =
  "Convert OGG Vorbis files to WAVE files using oggdec";
$plugin_options{'convert-oggdec'} = [
  ['opts=string', 'Extra oggdec command line options']];

$convert_plugin_hook = sub {
    my ($src, $dest) = map({quotemeta($_)} @_);
    my $oggdecopts = $plugin{'convert-oggdec'}{opts};
    system("oggdec -Q -b 16 $oggdecopts -o $dest $src");
    warn "error while executing oggdec" if $? != 0;
};

1
# vim:ft=perl
