demux: mp4: fix condition

is array, not variable.
cid #1194828
avio: fix busy loop on EOF (fixes #11076)