• xhwang@chromium.org's avatar
    No EOS frame in {Audio|Video}Decoder::OutputCB. · ff757030
    xhwang@chromium.org authored
    This is a follow-up CL of r276344.
    
    Currently, when audio and video decoders receive an EOS buffer, they do the following in order:
    1, Flush the codec, return all internally buffered frames through the OutputCB.
    2, Return a EOS frame through the OutputCB.
    3, Return the DecodeCB.
    
    Since the DecoderStream knows when an input buffer is an EOS, when the DecodeCB is returned, DecoderStream knows that decoding has finished. Therefore, step (2) is redundant.
    
    This CL drops step (2) which simplifies a lot of code.
    
    BUG=385872
    
    Review URL: https://codereview.chromium.org/339653003
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278232 0039d316-1c4b-4281-b951-d872f2087c98
    ff757030
video_decoder.h 4.52 KB