summaryrefslogtreecommitdiff
path: root/src/combined/ffmpeg/mkcodeclist.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/combined/ffmpeg/mkcodeclist.pl')
-rwxr-xr-xsrc/combined/ffmpeg/mkcodeclist.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/combined/ffmpeg/mkcodeclist.pl b/src/combined/ffmpeg/mkcodeclist.pl
index c4070eb32..b4a10921a 100755
--- a/src/combined/ffmpeg/mkcodeclist.pl
+++ b/src/combined/ffmpeg/mkcodeclist.pl
@@ -12,10 +12,12 @@ my $line;
# Read in the ffmpeg codec IDs
my %codecs;
open LIST, "< $ffmpeg" or die $!;
-while (defined ($line = <LIST>)) {
+$line = <LIST>;
+while (defined $line) {
chomp $line;
$line =~ s/^CODEC_ID_//o;
$codecs{$line} = 0;
+ $line = <LIST>;
}
close LIST or die $!;