<?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>26314</bug_id>
          
          <creation_ts>2014-07-12 00:12:21 +0000</creation_ts>
          <short_desc>[MSE] Coded Frame Removal algorithm leaves in place decoding dependencies</short_desc>
          <delta_ts>2014-07-24 21:20:59 +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="Jer Noble">jer.noble</reporter>
          <assigned_to name="Aaron Colwell">acolwell</assigned_to>
          <cc>acolwell</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-media</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>108875</commentid>
    <comment_count>0</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2014-07-12 00:12:21 +0000</bug_when>
    <thetext>3.5.10 Coded Frame Processing

&quot;1.15 Remove existing coded frames in track buffer:
↪︎ If highest presentation timestamp for track buffer is not set:
  Remove all coded frames from track buffer that have a presentation timestamp greater than or equal to presentation timestamp and less than frame end timestamp.
↪︎ If highest presentation timestamp for track buffer is set and less than or equal to presentation timestamp:
  Remove all coded frames from track buffer that have a presentation timestamp greater than or equal to highest presentation timestamp and less than frame end timestamp.&quot;

&quot;1.16 Remove decoding dependencies of the coded frames removed in the previous step:
↪︎ If detailed information about decoding dependencies is available:
  Remove all coded frames from track buffer that have decoding dependencies on the coded frames removed in the previous step.
↪︎ Otherwise:
  Remove all coded frames between the coded frames removed in the previous step and the next random access point after those removed frames.&quot;

vs.

3.5.11 Coded Frame Removal Algorithm

&quot;3.3. Remove all media data, from this track buffer, that contain starting timestamps greater than or equal to start and less than the remove end timestamp.&quot;

While &quot;remove end timestamp&quot; is guaranteed to be either a sync-sample or the end of the frames, &quot;start&quot; is not guaranteed to be a sync-sample. If decoding dependencies are not removed, decoding errors can result, particularly if a removed sample is a sync sample.

I propose adding the same language as found in section 3.5.10 after section 3.5.11 step 3.3:

&quot;Remove decoding dependencies of the coded frames removed in the previous step:
↪︎ If detailed information about decoding dependencies is available:
  Remove all coded frames from track buffer that have decoding dependencies on the coded frames removed in the previous step.
↪︎ Otherwise:
  Remove all coded frames between the coded frames removed in the previous step and the next random access point after those removed frames.&quot;

This would eliminate decoding errors, if there exist frames with presentation timestamps which occur before /start/, but whose decode timestamps occur after frames within the range define in step 3.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>109268</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell">acolwell</who>
    <bug_when>2014-07-24 21:20:59 +0000</bug_when>
    <thetext>Change committed.
https://dvcs.w3.org/hg/html-media/rev/c63fe313d13a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>