avconv: free packet in write_frame() when discarding due to frame number limit