avconv: cleanup the transcoding loop in output_packet().