<?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>21373</bug_id>
          
          <creation_ts>2013-03-22 10:22:57 +0000</creation_ts>
          <short_desc>Improve Coded Frame Processing and Segment Parser Loop algorithms</short_desc>
          <delta_ts>2013-04-04 20:40:45 +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>Windows NT</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>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cyril Concolato">cyril.concolato</reporter>
          <assigned_to name="Aaron Colwell (c)">acolwell</assigned_to>
          <cc>acolwell</cc>
    
    <cc>mike</cc>
    
    <cc>pal</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>84834</commentid>
    <comment_count>0</comment_count>
    <who name="Cyril Concolato">cyril.concolato</who>
    <bug_when>2013-03-22 10:22:57 +0000</bug_when>
    <thetext>I think the descriptions of the Coded Frame Processing (CFP) and the Segment Parser Loop (SPL) algorithms should be improved.

The CFP algorithm starts with:
&quot;When complete coded frames have been parsed by the segment parser loop then the following steps are run:&quot;

While the CFP algorithm is invoke from the SPL algo after the step:
&quot;If the input buffer does not contain a complete media segment header yet, then jump to the need more data step below.&quot;

The CFP assumes that SPL has actually detected coded frame boundaries (not just the header), which is not obvious from reading the SPL algo only.

To clarify that, I&apos;d suggest moving the first sentence of CFP and including it in step 6.3 of SPL. I&apos;d suggest also moving and rephrasing the note about progressive parsing after step 6.3. The result would be as follows:

&quot;3. If the input buffer contains one or more complete coded frames, run the coded frame processing algorithm.
NOTE: The frequency at which the coded frame processing algorithm is run is implementation-specific. The coded frame processing algorithm may be called when the input buffer contains the complete media segment or only some complete coded frames.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85021</commentid>
    <comment_count>1</comment_count>
    <who name="Aaron Colwell (c)">acolwell</who>
    <bug_when>2013-03-26 18:00:09 +0000</bug_when>
    <thetext>Changes committed.
https://dvcs.w3.org/hg/html-media/rev/1e6898152c5b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>