Clear the free packets when hitting end of video.
Merge pull request #397 from unknownbrackets/mpeg-fix

Clear the free packets when hitting end of video