OSDN Git Service

Fix decoder EOS handling
authorMarco Nelissen <marcone@google.com>
Thu, 29 Aug 2013 16:31:26 +0000 (09:31 -0700)
committerMarco Nelissen <marcone@google.com>
Fri, 30 Aug 2013 15:33:43 +0000 (08:33 -0700)
commit9da36a6c8df70a5c8179ac78fab33cfbb5078cb2
tree4dee529f6e7d9471db9971cb6d4d326959fbf6d7
parente07f53720bcf543bcfe90c228a49c2a85a3fdb4c
Fix decoder EOS handling

Conceptually it should be the same whether EOS is signalled on the last
buffer holding data, or an empty buffer that follows. Make it so that
this actually behaves the same for mp3, AAC and Vorbis.

b/8747869

Change-Id: Idece8ef45689a3ffaf70fb45d19862d7b93b2f92
media/libstagefright/codecs/aacdec/SoftAAC2.cpp
media/libstagefright/codecs/aacdec/SoftAAC2.h
media/libstagefright/codecs/mp3dec/SoftMP3.cpp
media/libstagefright/codecs/mp3dec/SoftMP3.h
media/libstagefright/codecs/vorbis/dec/SoftVorbis.cpp
media/libstagefright/codecs/vorbis/dec/SoftVorbis.h