Skip to content

Commit

Permalink
Change -frames 1 to -frames 0 in the perl bindings
Browse files Browse the repository at this point in the history
With the version of mplayer I have, it makes no difference, but apparently in
newer mplayer versions, it can make a difference somehow.  Beats me why
mplayer would have an issue with decoding one single video frame, but whatever.

Fixes #9892
  • Loading branch information
Beirdo committed Jul 6, 2011
1 parent 55fcd91 commit d852c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/bindings/perl/MythTV/Recording.pm
Expand Up @@ -308,7 +308,7 @@ package MythTV::Recording;
# Nothing found? Die
die "You need mplayer to use this script on mpeg-based files.\n\n" unless ($program);
# Grab the info we want from mplayer (go uber-verbose to override --really-quiet)
my $idargs = "-v -v -v -v -nolirc -nojoystick -vo null -ao null -frames 1 -identify";
my $idargs = "-v -v -v -v -nolirc -nojoystick -vo null -ao null -frames 0 -identify";
my $data = `$program $idargs '$file' 2>/dev/null`;
study $data;
($info{'video_type'}) = $data =~ m/^VIDEO:?\s*(MPEG[12]|H264)/m;
Expand Down

0 comments on commit d852c8f

Please sign in to comment.