Avoid returning a NULL Frame as much as possible.

Sometimes (mainly when resampling) the composer ask for more frames than
input_ff can provide. So always copy (cheap since we share the data buffer)
the last decoded frame and return it in case of eof.