<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -458,19 +458,19 @@ module RVideo # :nodoc:
     FPS = 'fps(?:\(r\))?'
     
     VIDEO_MATCH_PATTERN = /
-      Stream\s*(\#[\d.]+)(?:[\(\[].+?[\)\]])?\s*                # stream id
-      [,:]\s*                                                   
-      (?:#{RATE}\s*#{FPS}[,:]\s*)?                              # frame rate, older builds
-      Video:\s*                                                 
-      #{VAL}#{SEP}                                              # codec
-      (?:#{VAL}#{SEP})?                                         # color space
-      (\d+)x(\d+)                                               # resolution
-        (?:\s*\[(?:PAR\s*(\d+:\d+))?\s*(?:DAR\s*(\d+:\d+))?\])? # pixel and display aspect ratios
+      Stream\s*(\#[\d.]+)(?:[\(\[].+?[\)\]])?\s*                  # stream id
+      [,:]\s*                                                     
+      (?:#{RATE}\s*#{FPS}[,:]\s*)?                                # frame rate, older builds
+      Video:\s*                                                   
+      #{VAL}#{SEP}                                                # codec
+      (?:#{VAL}#{SEP})?                                           # color space
+      (\d+)x(\d+)                                                 # resolution
+        (?:\s*\[?(?:PAR\s*(\d+:\d+))?\s*(?:DAR\s*(\d+:\d+))?\]?)? # pixel and display aspect ratios
         #{SEP}?
-      (?:#{RATE}\s*(kb\/s)#{SEP}?)?                             # video bit rate
-      (?:#{RATE}\s*(?:tbr|#{FPS})#{SEP}?)?                      # frame rate
-      (?:#{RATE}\s*tbn#{SEP}?)?                                 # time base
-      (?:#{RATE}\s*tbc#{SEP}?)?                                 # codec time base
+      (?:#{RATE}\s*(kb\/s)#{SEP}?)?                               # video bit rate
+      (?:#{RATE}\s*(?:tb\(?r\)?|#{FPS})#{SEP}?)?                  # frame rate
+      (?:#{RATE}\s*tbn#{SEP}?)?                                   # time base
+      (?:#{RATE}\s*tbc#{SEP}?)?                                   # codec time base
     /x
     
     def video_match</diff>
      <filename>lib/rvideo/inspector.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ffc32f136d0a402a16af8466474348c6031ca4ca</id>
    </parent>
  </parents>
  <author>
    <name>Seth Thomas Rasmussen</name>
    <email>sethrasmussen@gmail.com</email>
  </author>
  <url>http://github.com/greatseth/rvideo/commit/7ef699e0d58cae99c2e8f4c1519574d24f911c85</url>
  <id>7ef699e0d58cae99c2e8f4c1519574d24f911c85</id>
  <committed-date>2009-04-13T14:16:48-07:00</committed-date>
  <authored-date>2009-04-13T14:16:48-07:00</authored-date>
  <message>Fix some backwards compat issues with ffmpeg and Inspector

- Fix braced version of tbr in some versions of ffmpeg [kakra]
- Fix detection of some video streams [kakra]</message>
  <tree>7480e55dc8c04ebaa4714efc79e7572b57aa9c1f</tree>
  <committer>
    <name>Seth Thomas Rasmussen</name>
    <email>sethrasmussen@gmail.com</email>
  </committer>
</commit>
