<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25998</bug_id>
          
          <creation_ts>2014-06-06 01:45:35 +0000</creation_ts>
          <short_desc>Move timestamp less than &quot;presentation start time&quot; checks after &quot;append window&quot; filtering</short_desc>
          <delta_ts>2014-06-13 20:12:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>Media Source Extensions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>CR</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aaron Colwell">acolwell</reporter>
          <assigned_to name="Aaron Colwell">acolwell</assigned_to>
          <cc>mike</cc>
    
    <cc>public-html-media</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>107411</commentid>
    <comment_count>0</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-06-06 01:45:35 +0000</bug_when>
    <thetext>Step 7 of the coded frame processing algorithm should be moved after steps 8-10 so that it is possible to append the middle of a media segment at the beginning of presentation.

Say I have a media segment that spans the range [0, 10) and has a random access point at time 5. To insert the range [5-10) at time 0, I would need to set timestampOffset to -5 before appending. The current location of the check would cause a &quot;decode&quot; error because the coded frame for presentation time 0 would become -5. If the check is moved after the append window, the coded frames with negative timestamps are automatically filtered out and the &quot;decode&quot; error is avoided.

As I side note, I realized that the constraints for setting appendWindowStart actually enforces &quot;presentation timestamp &gt; 0&quot; so I can technically drop the presentation timestamp part of the check in Step 7.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107803</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-06-13 20:12:43 +0000</bug_when>
    <thetext>Change committed.
https://dvcs.w3.org/hg/html-media/rev/cb96bc1c87c3

Moved step after append window filtering steps and removed presentation timestamp from the step because that case is covered by the append window filtering steps.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>