Permalink
Browse files

Changed the regexp on audio_type to allow text

Seems that our old regexp was expecting AUDIO_CODEC=numeric.  I see only
AUDIO_CODEC=(mp3|faad|a52) on my recordings, so let's capture \w+ instead.
This allows nuvexport to display the detected audio codec.
  • Loading branch information...
1 parent dcdce27 commit 38d3a3830622eb449df3758baa34143ecc452dc4 @Beirdo Beirdo committed with jyavenard Dec 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/bindings/perl/MythTV/Recording.pm
@@ -320,7 +320,7 @@ package MythTV::Recording;
($info{'audio_bits_per_sample'}) = $data =~ m/^AUDIO:.+?ch,\s*[su](8|16)/mi;
($info{'audio_channels'}) = $data =~ m/^ID_AUDIO_NCH=0*([1-9]\d*)/m;
($info{'aspect'}) = $data =~ m/^ID_VIDEO_ASPECT=0*([1-9]\d*(?:[\.\,]\d+)?)/m;
- ($info{'audio_type'}) = $data =~ m/^ID_AUDIO_CODEC=0*([1-9]\d*(?:\.\d+)?)/m;
+ ($info{'audio_type'}) = $data =~ m/^ID_AUDIO_CODEC=(\w+)/m;
($info{'mpeg_stream_type'}) = $data =~ m/^ID_DEMUXER=(\w+)/mi;
# Set the is_mpeg flag

0 comments on commit 38d3a38

Please sign in to comment.