Real files do skip coding 0 bits at the end, thus this kind of check does not work reliable. Fixes: Ticket 8770 Fixes: dst-256fs44-6ch-refdstencoder.dff The samplerate is specified in ISO/IEC 14496-3:2005(E) as one of 3 fixed values, this also can be used to limit the duration and avoid the timeout This reverts committags/n4.1.6f6df99dba1. (cherry picked from commit1679f23beb) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>