Fix flac encoder and decoder EOS handling am: 103f5a6268
am: c2c49ffaf0

Change-Id: I281ad3b66c8ceb9f5216b3a62cbad897cfd3207b