I has add an qdebug that prints what should be the real size of output
file, for any kind of trouble, the output file is receiving a lot of
trash.