CCodec: handle attaching 0-sized encrypted buffer

Add more logging around attachment failures as well.

Bug: 159714043
Test: manual
Test: atest android.media.codec.cts.MediaCodecBlockModelTest
Change-Id: If47496ab7bc56bea258e1fd2f1827dc35bbedd6b
2 files changed